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
What is an inode block?
Is shell a scripting language?
Is shell and terminal the same?
What is awk script?
What is an sh file?
one folder contains lot of students name but I want to fetch hello with every student name individually using shell script
What is shell prompt?
What is a file basename?
Why is shell scripting important?
What are the advantages of shell script?
How will you pass and access arguments to a script in linux?
What is the default ubuntu terminal?
How do I save a powershell script?
Suppose you execute a command using exec, what will be the status of your current process in the shell?
How do I run a script from command prompt?