How u convert string "hi pravin how are you?" to
"Hi Pravin How Are You?"
Answer Posted / saravanan
$line = "hi Praveen How are you";
$line =~ s/\b(\w+)\b/ucfirst($1)/e;
print $line;
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Which shell is the best?
Tell something about the super block in shell scripting?
c program to implement unix/linux command to block the signal ctrl-c and ctrl-\ signal during the execution ls -l|wc -l
Write a command sequence to find the count of each word?
Is it possible to substitute "ls" command in the place of "echo" command?
What is the first line of a shell script called?
What is shell application?
What are the different communication commands available in the shell?
Is shell scripting easy to learn?
How to find duplicate record in file using shell script?
What is option in shell script?
How will you copy a file from one machine to other?
What does the sh command do?
Is shell scripting difficult?
What does echo mean in scripting?