How u convert string "hi pravin how are you?" to
"Hi Pravin How Are You?"
Answer Posted / nachikethas
use a perl one liner like this
perl -e '$var="hi pravin how are you";@arr=split("
",$var);foreach $wrd(@arr){print ucfirst($wrd)." ";}'
| Is This Answer Correct ? | 8 Yes | 5 No |
Post New Answer View All Answers
What is in a script?
Why is a script important?
How will you find the 99th line of a file using only tail and head command?
What is awk in shell script?
determine the output of the following command: echo ${new:-variable}
I want to monitor a continuously updating log file, what command can be used to most efficiently achieve this?
Is shell and terminal the same?
How does ls command work?
What is .sh file in mac?
What is subshell?
Explain about debugging?
What is the purpose of scripting?
How do scripts work?
What is sed in shell script?
In my bash shell I want my prompt to be of format '$"present working directory":"hostname"> and load a file containing a list of user-defined functions as soon as I log in, how will you automate this?