Echo
From Wsms
Note: This page should be titled echo (all lowercase). It is echo due to technical limitations of Mediawiki.
Echo spits things back to stdout.
[edit]
Common Usage
Look at the value of a shell variable:
[ggeller@arthur ~]$ echo $PATH
Look at the value of a shell variable and don't print a newline:
[ggeller@arthur ~]$ echo -n $PATH
Count the number of characters in a string:
[ggeller@arthur ~]$ echo -n 1000000000001100101111111001011001001011111110010110010011000000 | wc -c
Echo putting the newline in manually
[ggeller@arthur ~]$ echo -en "test\n"
[edit]
Tips
[edit]
see also
man chmod
Printf
