[plug] Re: Here documents

David Buddrige buddrige at wasp.net.au
Fri Oct 3 12:18:53 WST 2003


Beut!  Thanks, that worked. 8-) 

cheers 

David.
Cameron Patrick writes: 

> 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
 
_______________________________________________
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