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
What is the crontab?
What is difference between shell and bash scripting?
Write a shell script that adds two numbers if provided as the command line argument and if the two numbers are not entered throws an error message.
What is the default ubuntu terminal?
Explain about return code?
Why do we use shell scripting?
Why are shell scripts used?
What is the equivalent of a file shortcut that we have a window on a linux system?
How do you find out What is your shell?
How to check if a directory exists?
What is shift command in shell script?
What is the command to find out today's date?
How important is shell scripting?
What language is bash?
How to get the last line from a file using just the terminal?