Brock Noland wrote: > > 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.
I had that one already covered. :-) > > Or to read a file "foofile" at the first line of the file. > > > > ed -s bar <<EOF > > 0r foofile > > w > > q > > EOF Sorry we got off on the wrong foot. Bob _______________________________________________ Bug-coreutils mailing list Bug-coreutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-coreutils