How do you print the output the same string which is typed
in command line. how do you write the shell script or
command for this. if i entered "Hello" in command line, it
should print 'Hello', if i say "Hello Welcome", i should get
the "Hello Welcome" as output.?

Answer Posted / santana20142003

$read line ---> it will read
$ echo $line ---> it will display

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to write a function?

596


How do I save a powershell script?

562


Is powershell a language?

567


What is shell application?

573


What is sed in shell script?

575






What is path in shell script?

641


What is awk in shell scripting?

559


What is the use of a shebang line?

625


What is the syntax of while loop in shell scripting?

573


How do you debug a script?

569


Is powershell a bash?

590


What are the different types of commonly used shells on a typical linux system?

556


What is the first line in every perl script called?

559


How do I edit a .sh file?

627


What makes c shell a more preferable option than the bourne shell?

544