Remove line from a file using a variable line number

Posted by paultop6 on Stack Overflow See other posts from Stack Overflow or by paultop6
Published on 2010-03-14T23:06:02Z Indexed on 2010/03/14 23:15 UTC
Read the original article Hit count: 215

Filed under:
|
|
|

Hi Guys,

This is probably a simple one to answer, but im stuck, so here goes

sed '3d' filename (or something like tht)

Im having trouble try to use a $VARIABLE instead of the number

Any1 know how to get this to work , or any alternative options

Regards

Paul

© Stack Overflow or respective owner

Related posts about sed

Related posts about linux