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
How can the contents of a file inside jar be read without extracting in a shell script?
What does $1 mean in bash?
What is a shell? · Types of shell · what is shell scripting?
Determine the output of the following command: [ -z “” ] && echo 0 || echo 1
What is a program shell?
Explain about login shell?
What is awk script?
Is shell scripting a language?
What is meant by $1 in shell script?
How will you emulate wc –l using awk?
What is batch file programming?
How can you get the value of pi till a 100 decimal places?
What is bash eval?
madhar chod unix ke 10 commands dhang se likh nahi sakta hai
How to get the last line from a file using just the terminal?