Using trusty awk -
awk -v line_num=5 '{if(NR == line_num){next;} print $0;}' < file
On 24-Dec-2008 13:34 , Dan Shimshoni wrote:
Hello,
- And in the same fun spirit :
Is it possible to delete a line in a specified file , given the
number of the line, in a non-sed script ?
DanS
On Wed, Dec 24, 2008 at 9:08 AM, Oron Peled <o...@actcom.co.il> wrote:
On Tuesday, 23 בDecember 2008, Erez D wrote:
On Tue, Dec 23, 2008 at 10:17 AM, Valery Reznic wrote:
--- On Tue, 12/23/08, Baruch Siach <bar...@tkos.co.il> wrote:
tail -n +5
It should be +6
That is the reson i preffer "sed '1,5d' " over "tail -n +6"
Since everyone are having fun, here is another one: sed -n '6,$p'
--
Oron Peled Voice/Fax: +972-4-8228492
o...@actcom.co.il http://www.actcom.co.il/~oron
"Linux: like the air you breathe, ubiquitous and free"