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
What is shell variable?
Explain about the slow execution speed of shells?
Calculate a real number calculation directly from the terminal and not any shell script.
Is shell scripting a language?
What is the use of echo in shell script?
How to check if a directory exists?
What is a shell environment?
How do I run a .sh file on mac?
determine the output of the following command: echo ${new:-variable}
Explain about "s" permission bit in a file?
How do I run a script on mac?
What is the use of a shebang line?
What is shell geeksforgeeks?
Write a command sequence to find the count of each word?
What does debug script mean?