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
What are scripts in psychology?
What exactly is a shell?
Print the 10th line without using tail and head command.
shell script for reverse the string
What are filters explain sort with all the options available?
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 ?
What does $$ mean in shell script?
What is ms powershell?
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?
State the advantages of shell scripting?
What are the disadvantages of shell scripting?
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.
How can you get the value of pi till a 100 decimal places?
How to find all the files modified in less than 3 days and save the record in a text file?
How do I run a shell script on a mac?