Difference between revisions of "Echo Command"
Jump to navigation
Jump to search
(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>') |
|||
Line 1: | Line 1: | ||
− | To display the value of a variable either use echo or | + | To display the value of a variable either use echo or printf command as follows: |
<source lang="bash">echo $varName</source> | <source lang="bash">echo $varName</source> | ||
OR | OR | ||
<source lang="bash">printf "%s\n" $varName</source> | <source lang="bash">printf "%s\n" $varName</source> |
Revision as of 18:51, 30 August 2009
To display the value of a variable either use echo or printf command as follows:
echo $varName
OR
printf "%s\n" $varName