Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 the syntax of while loop in shell scripting?

1090


What is option in shell script?

1057


one folder contains lot of students name but I want to fetch hello with every student name individually using shell script

996


What is subshell?

989


How can I set the default rwx permission to all users on every file which is created in the current shell?

1469


What is scripting autism?

1259


How does ls command work?

1076


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

1609


What are different types of shell?

969


What does egrep mean?

1024


What is gui scripting?

1179


What are the four fundamental components of every file system on linux?

1725


What are the default permissions of a file when it is created?

1066


How do I run a script from command prompt?

1134


What is a scripting language simple definition?

1155