How u convert string "hi pravin how are you?" to
"Hi Pravin How Are You?"

Answer Posted / manish yadav

echo hi praveen how are you|sed 's/ [a-z]/\U&/g'|sed 's/^[a-
z]/\U&/g'

Is This Answer Correct ?    9 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the first line of a shell script called?

567


What is a shell in operating system?

587


What is bourne shell scripting?

530


How to pass an argument to a script?

590


Explain about return code?

632






What is awk in shell scripting?

551


What are the types of script?

613


Write down the syntax of "for " loop

607


How do you know which shell I am using?

587


What does $@ mean in shell?

590


Can we run shell script in windows?

577


In my bash shell I want my prompt to be of format '$"present working directory":"hostname"> and load a file containing a list of user-defined functions as soon as I log in, how will you automate this?

636


Is it possible to substitute "ls" command in the place of "echo" command?

614


What are zombie processes?

569


Is shell scripting useful?

590