How u convert string "hi pravin how are you?" to
"Hi Pravin How Are You?"
Answer Posted / vipul dalwala
echo "hi pravin how are you?" | awk 'BEGIN { ORS = ""
upper = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
lower = "abcdefghijklmnopqrstuvwxyz" }
{
for (i = 1; i <= NF; i++) {
FC = substr($i, 1, 1)
if (C = index(lower, FC))
FC = substr(upper, C, 1)
print FC substr($i,2) " "
}
print "\n"
}'
Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
Using set -A write a script to print the output of the ls command in 5 columns with two spaces between each column. Pretend that ls does not have multicolumn output.
What is a shell script in windows?
Explain about the slow execution speed of shells?
State the advantages of shell scripting?
What is ms powershell?
wats the deinitions for shell utility and filter?
What is path in shell script?
What are the different types of shell scripting?
What is c in shell script?
What is the use of "$#" in shell scripting?
What is the use of echo in shell script?
What is the use of .sh file?
What is scripting used for?
What language is used in terminal?
What is the default shell of solaris?