Echo Command

From Linux Shell Scripting Tutorial - A Beginner's handbook
Revision as of 18:51, 30 August 2009 by Admin (talk | contribs) (Created page with 'To display the value of a variable either use echo or print command as follows: <source lang="bash">echo $varName</source> OR <source lang="bash">printf "%s\n" $varName</source>')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

To display the value of a variable either use echo or print command as follows:

echo $varName

OR

printf "%s\n" $varName