[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Feature Request - prepend to file
From: |
Brock Noland |
Subject: |
Re: Feature Request - prepend to file |
Date: |
Sat, 5 Apr 2008 22:04:56 -0500 |
> > > { 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