[ILUG] Re: sed question
Brian Foster
blf at utvinternet.ie
Fri Aug 15 07:07:12 IST 2008
| Date: Thu, 14 Aug 2008 10:15:59 -0400
| From: Brendan Kehoe <brendan at zen.org>
|
| >[ ... ] Does anyone know a one-liner sed/awk/perl
| > to add a blank line to the start of a file?
sed -i '1i\
' FILE
does it in-place (‘-i’) fo <FILE> (GNU sed(1) only).
cheers!
-blf-
--
“How many surrealists does it take to | Brian Foster
change a lightbulb? Three. One calms | somewhere in south of France
the warthog, and two fill the bathtub | Stop E$$o (ExxonMobil)!
with brightly-coloured machine tools.” | http://www.stopesso.com
More information about the ILUG
mailing list