Echo
From FreeBSDwiki
(Difference between revisions)
| Line 12: | Line 12: | ||
This is a test file | This is a test file | ||
samizdata# | samizdata# | ||
| + | |||
| + | [[Category:System Commands]] | ||
Revision as of 02:09, 24 December 2004
echo repeats whatever has been given to it. From the manpage:
The echo utility writes any specified operands, separated by single blank
(` ') characters and followed by a newline (`\n') character, to the stan-
dard output.
The simplest way to explain it is to see it in action:
samizdata# echo "hello!" hello!
It can also be used to add input to a file:
samizdata# echo "This is a test file" > /root/testfile samizdata# more /root/testfile This is a test file samizdata#