Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What is in a script?

1001


Why is a script important?

1042


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

2523


What is awk in shell script?

1214


determine the output of the following command: echo ${new:-variable}

964


I want to monitor a continuously updating log file, what command can be used to most efficiently achieve this?

1323


Is shell and terminal the same?

1033


How does ls command work?

1013


What is .sh file in mac?

1004


What is subshell?

925


Explain about debugging?

1007


What is the purpose of scripting?

1059


How do scripts work?

1028


What is sed in shell script?

1029


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?

1126