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

Why is it called a shell?

513


Using set -A write a script to print the output of the ls command in 5 columns with two spaces between each column. Pretend that ls does not have multicolumn output.

2179


Write a script to print the first 10 elements of fibonacci series.

1782


I want to create a directory such that anyone in the group can create a file and access any person's file in it but none should be able to delete a file other than the one created by himself.

605


I want to monitor a continuously updating log file, what command can be used to most efficiently achieve this?

762






What is echo in shell?

642


What is the crontab?

552


What is a scripting language simple definition?

572


How do I run a script on mac?

574


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

602


What is path in shell script?

643


What is shell company all about?

582


What are the different variables present in linux shell?

616


How will you emulate wc –l using awk?

922


How do I run a .sh file on mac?

690