[Tutor] [Off-Topic] 'ex' vs. 'sed'...
Thu Feb 28 17:30:47 CET 2008
(sorry for hijacking the thread like this!)
On Wed, 2008-02-27 at 15:02 -0800, Bill Campbell wrote:
> Another way on *nix systems that might be better wouldn't use
> python at all. Edit the file in place with ed or ex:
> ex - filename <<DONE
Errrr, how about: "sed -i.BACKUP -e '1d' filename"?
Much shorter, elegant, and obvious. (and it creates a backup file of
After all, "sed" stands for: Stream EDitor.
(again, sorry for hijacking the thread.)
More information about the Tutor