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
What does it mean by #!/Bin/sh or #!/Bin/bash at the beginning of every script?
What is shell variable?
What is a scripting language simple definition?
What is the default ubuntu terminal?
Why should we use shell scripts?
write a shell script to check the failed jobs?
How do I run a script from command prompt?
What does $@ mean in shell?
How to redirect both standard output and standard error to the same location?
What is the use of echo in shell script?
In my bash shell I want my prompt to be of format '$"present working directory":"hostname"> and load a file containing a list of user-defined functions as soon as I log in, how will you automate this?
What is shell prompt?
How can any user find out all information about a specific user like his default shell, real-life name, default directory, when and how long he has been using the system?
How does path variable work?
What are the advantages of shell script?