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

Answer Posted / saravanan

$line = "hi Praveen How are you";

$line =~ s/\b(\w+)\b/ucfirst($1)/e;


print $line;

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are scripts in psychology?

588


What exactly is a shell?

600


Print the 10th line without using tail and head command.

1672


shell script for reverse the string

914


What are filters explain sort with all the options available?

930






Set up a Sev 2 alert when the Primary WA service fails. A windows batch script needs to be created that will monitor the WA service on the Primary and when the service stops/fails a Sev 2 TT is generated for a particular team ?

1711


What does $$ mean in shell script?

575


What is ms powershell?

579


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?

714


State the advantages of shell scripting?

592


What are the disadvantages of shell scripting?

635


write a shell script to emulate the Id command of PRIMOS which lists files and directories. It list files first with a header FILES and then directories with a header DIRECTORIES. This command has several options. The main ones are. -file select files only -dir select directories only -reverse sort in reverse order -no_header put no header on the output -brief output the header only -size display the size of each file -help display Id´s syntax and options.

2226


How can you get the value of pi till a 100 decimal places?

546


How to find all the files modified in less than 3 days and save the record in a text file?

608


How do I run a shell script on a mac?

623