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


Please Help Members By Posting Answers For Below Questions

How to get the first line from a file using just the terminal?

595


What are scripts in psychology?

588


What language is used in terminal?

553


Explain about login shell?

631


What is the default shell of solaris?

565






How are shells born?

548


What are the different types of variables used in shell script?

549


What are the various stages of a linux process it passes through?

624


What are the different communication commands available in the shell?

515


write a shell script to generate a alert ? like when ur birthday came then generate a alert ur birthday is today like that ?

3587


What are the zombie processes?

563


Explain about echo command?

622


What are the 3 standard streams in linux?

570


Is bash a shell script?

595


Explain about "s" permission bit in a file?

608