Friday, October 7, 2011
9:25 PM

echo command in Linux/Unix


echo command in Linux/Unix


echo command in Linux/UNIX is primarily used to :


 1. To display message ( it is used in shell scripts).
 2. To evaluate shell variables (like echo $PATH)


Examples


1. echo "my name is xyz"     -- double quotes is not mandatory



output : 

$ echo "my name is xyz"
my name is xyz

$ echo my name is sandeep
my name is sandeep
$





2. echo $SHELL


output:


$

0 comments:

Post a Comment