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
How to get the first line from a file using just the terminal?
What are scripts in psychology?
What language is used in terminal?
Explain about login shell?
What is the default shell of solaris?
How are shells born?
What are the different types of variables used in shell script?
What are the various stages of a linux process it passes through?
What are the different communication commands available in the shell?
write a shell script to generate a alert ? like when ur birthday came then generate a alert ur birthday is today like that ?
What are the zombie processes?
Explain about echo command?
What are the 3 standard streams in linux?
Is bash a shell script?
Explain about "s" permission bit in a file?