Deleting lines that start with any string

General questions about using WildEdit

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
ethib2000
Posts: 2
Joined: Wed Jul 28, 2004 3:26 pm

Deleting lines that start with any string

Post 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
User avatar
s_reynisson
Posts: 940
Joined: Tue May 06, 2003 1:59 pm

Post 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
Then I open up and see
the person fumbling here is me
a different way to be
Post Reply