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

‎What is a shell? · ‎Types of shell · ‎what is shell scripting?

545


What is k shell?

527


What are types of shells?

537


How will you print the login names of all users on a system?

564


What is the lifespan of a variable inside a shell script?

1118






What is console line?

561


How can the contents of a file inside jar be read without extracting in a shell script?

583


Which is better perl or shell scripting?

549


What is difference between shell and bash scripting?

533


What's the difference between scripting and coding?

589


How to set an array in linux?

582


What is a shell in operating system?

583


What is scripting used for?

551


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

530


Why should we use shell scripts?

582