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 / asit

echo "$*"

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What language is shell scripting?

581


Given a file find the count of lines containing the word "abc".

961


How do I save a powershell script?

560


What lives in a shell?

540


What is the meaning of $1 in shell script?

594






What are the different communication commands available in the shell?

520


how will you find the total disk space used by a specific user?

581


What is shell chemistry?

538


Explain about login shell?

636


Is cmd a shell?

598


What is $1 in shell scripting?

593


Explain about the exit command?

570


What is shell terminal?

548


How to print the first array element?

552


What is option in shell script?

561