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


Please Help Members By Posting Answers For Below Questions

What is a shell environment?

572


What are scripts in psychology?

588


How do I run a .sh file?

610


What is bash coding?

495


What are the zombie processes?

563






How do I run a bin bash script?

567


Explore about environment variables?

588


What is a beat in a script?

536


What will happen to my current process when I execute a command using exec?

533


What is console line?

568


Why is it called a shell?

503


How do I stop script errors?

572


How do I debug a shell script?

556


What is a boot block?

579


Where are cowrie shells found?

573