How u convert string "hi pravin how are you?" to
"Hi Pravin How Are You?"

Answer Posted / sonia

Use perl :-)

msg="hi praveen how are you"
msg=`echo $msg | perl -n -e 'print ucfirst(lc);'`

Is This Answer Correct ?    4 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the syntax of "nested if statement" in shell scripting?

627


one folder contains lot of students name but I want to fetch hello with every student name individually using shell script

509


Tell something about the super block in shell scripting?

569


What lives in a shell?

537


Explain about "s" permission bit in a file?

609






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

624


What is the use of "$?" Sign in shell script?

611


I have to write Shells (Linux + Unix)for publishing packages and reports. Is it possible ? What are the differents executable programs ineed to call ?

1680


How does path variable work?

543


How will you find the 99th line of a file using only tail and head command?

1976


What makes c shell a more preferable option than the bourne shell?

534


What is a shell environment?

572


What is the use of .sh file?

598


Why should we use shell scripts?

587


Please give me example of " at command , contrab command " how to use

2325