> > > { echo header; cat file; } > file1 && mv file1 file
> > Yes, that's is effectively how I do it when I don't have the script
> In addition to the above if I restrict myself to programs that already
> know how to edit files in place I can think of a few additional easy
> ways. Sed of course comes to mind. Here is one way to use sed to
> edit a file in place and insert "foo" at the first line of the file.
I forgot to mention that often I want to prepend an entire file.
Respectfully,
Brock
_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils