[plug] Here documents
Cameron Patrick
cameron at patrick.wattle.id.au
Fri Oct 3 12:12:38 WST 2003
On Fri, Oct 03, 2003 at 12:01:03PM +0800, David Buddrige wrote:
| cat <<EOF
| some text that
| I want to add
| to the end of my
| file
| EOF
| >>somefile.txt
Try moving the ">>somefile" to the top line, like so:
cat >>somefile.txt <<EOF
blah
EOF
CP.
_______________________________________________
plug mailing list
plug at plug.linux.org.au
http://mail.plug.linux.org.au/cgi-bin/mailman/listinfo/plug
More information about the plug
mailing list