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 the way to do multilevel if-else's in shell scripting?
What are the advantages of using shell scripts?
What is bash command used for?
is this growing field and what is average package in this?
How do scripts work?
Where is bash history?
How to redirect both standard output and standard error to the same location?
What is shell scripting used for?
How do I start a shell script?
Is shell scripting easy to learn?
What does $@ mean in shell?
What is the use of a shebang line?
how to get part of string variable with echo command only?
What language is shell scripting?
When should shell programming/scripting not be used?