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 a command line shell?
How do I open the shell prompt?
Can you write a script to portray how set –x works?
What is the way to do multilevel if-else's in shell scripting?
Explain about the slow execution speed of shells?
How do I stop script errors?
What is echo in shell?
What is gui scripting?
What are the various stages of a linux process it passes through?
Write down the syntax of "for " loop
How does shell scripting work?
How can I send a mail with a compressed file as an attachment?
Tell something about the super block in shell scripting?
I want to connect to a remote server and execute some commands, how can I achieve this?
What is an sh file?