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...

in unix echo is used for

Answer Posted / tubecharger

In unix, echo is used to display whatever is following it
onto the terminal or screen. Special characters get handled
differently and are processed by the shell with their
special meaning. If special characters are to be displayed
using echo, then they must be preceded by a back-slash or
put in quotes or double quotes or a combination of all of
these depending on what you are trying to do.
For example:
example 1:
echo hello world
displays
hello world

example 2:
echo "Hello there!"
displays
Hello there!
(and here the special character ! is quoted so that it's
special meaning is ignored.)

example 3:
set message = "this is a message."
echo $message
displays
this is a message.

echo on - by itself does not turn on and off echoing of
commands to the terminal. echo on simply types "on" at the
terminal.

echo string >> filename may work on some systems but the
conventional way of doing this is using the cat command:
cat "hello world" > filename

Refer to the man page on csh, bash or sh for more details on
the echo command.

Is This Answer Correct ?    20 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Are you in or at the office?

1071


What does this command do,"$more readme.txt“?

1100


What is .sh file?

1107


Is it inbetween or in between?

998


What is the comma to display different lines that are found when compare two files?

1083


Is grep faster than awk?

987


How does the system know where one command ends and another begins?

2173


Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?

1155


How do I search a whole word in vim?

1127


Describe the usage and functionality of the command rm –r * in unix?

1963


What is in grep command?

1119


What is the use of the command 'ls -x chapter[1-5]' ?

1154


What is difference between grep and find command in unix?

1142


What do chgrp command do?

1142


how to sort the content of the file based on numeric values

1730