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
Explain about shebang?
What are the four fundamental components of every file system on linux?
How do I run a shell script on a mac?
How does path variable work?
How can the contents of a file inside jar be read without extracting in a shell script?
What is difference between shell and bash scripting?
What is shift command in shell script?
i have 2 tables 4 colums table 1 respective values a1 6, a2 8,a3 9,a4 14 & table 2 respective values a1 6, a2 8, a3 9, a4 12. if compare 2 tables 3 colums values same then 4th column values 1)Qes diff >5 then (5 * diff value ) 2)Qes diff <5 the 5 3)Qes diff 5 then 5 print respective values..
Given a file find the count of lines containing the word "abc".
Is shell a scripting language?
What is difference between bash and shell?
Can we run shell script in windows?
How to set an array in linux?
What are the advantages of using shell scripts?
What is eval in shell script?