How u convert string "hi pravin how are you?" to
"Hi Pravin How Are You?"
Answer Posted / padmakumar
The file "test" contains "hi pravin how are you?".
sed -e "s/^[a-z]/\U&/" -e "s/[[:space:]][a-z]/ \U&/g" test
| Is This Answer Correct ? | 5 Yes | 2 No |
Post New Answer View All Answers
How to get the last line from a file using just the terminal?
What is ms powershell?
How to find duplicate record in file using shell script?
Calculate a real number calculation directly from the terminal and not any shell script.
What are scripts in psychology?
How to check if the previous command was run successfully?
What is a batch file used for?
What is a shell made of?
What is $1 in shell scripting?
What is the difference between bash and shell?
How do I stop script errors?
What shell is bin sh?
What is a shell script? Can you name some of its advantages?
What is the default shell of solaris?
What is shell geeksforgeeks?