Page 1 of 1

Deleting lines that start with any string

Posted: Wed Jul 28, 2004 4:02 pm
by ethib2000
Hi,

I just want to delete lines that starts with any string.

ex. reports number

1) sed '/^reports number/d'
2) ^reports number*$

ect... It does not work. Does anyone knoews the syntax?

Thanks

Posted: Wed Jul 28, 2004 6:21 pm
by s_reynisson
Find what ^reports number.*?$
Replace with nothing.
Tick the Regular expression and Replacement format boxes.
Also, try the help with WE (F1), it's quite good! ;) HTH