[WNYLUG-Users] appending

Christopher Hawkins chawkins at bplinux.com
Thu Feb 11 12:20:47 EST 2010

Not sure about the redirect, but this would also do it: 
sed '1inewstuff' < file 

Given 'file' containing A, B, C, if you pipe it into sed and use '1i' to insert your expression on line 1, that will do what you want. 


----- "Cyber Source" <peter at cybersource.us> wrote: 
> Hello All, 
> Just curious. Is there a way when doing something such as "echo this >> tothisfile", that the included "this" would append to the TOP of the file and not the bottom? TIA, Peter 
> -- 
> Cyber Source cybersource.us
> 115 Richfield Road 
> Williamsville, New York 14221 
> 716-553-8525 
> _______________________________________________ Users mailing list Users at wnylug.org http://wnylug.org/mailman/listinfo/users_wnylug.org 

More information about the Users mailing list