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 subshell?

532


How to calculate the number of passed arguments?

558


is this growing field and what is average package in this?

1876


How will you copy a file from one machine to other?

550


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

556






What is meant by $1 in shell script?

552


Is shell a scripting language?

576


What are scripts in psychology?

601


Write the syntax for "if" conditionals in linux?

599


Is bash an operating system?

548


i have 2 tables 4 colums table 1 respective values a1 6, a2 8,a3 9,a4 14 & table 2 respective values a1 6, a2 8, a3 9, a4 12. if compare 2 tables 3 colums values same then 4th column values 1)Qes diff >5 then (5 * diff value ) 2)Qes diff <5 the 5 3)Qes diff 5 then 5 print respective values..

1794


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

2331


What does $$ mean in shell script?

591


What are the different commands available to check the disk usage?

497


What is difference between bash and shell?

558