[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: regexp: anything but |



On Qua, 09 Dez 2009, lee wrote:
I'm looking for a regular expression that matches anything but the
pipe sign ('|').

My intention is to use sed to delete lines from kaffeines channels.dvb
that contain duplicate senders, i. e. sender names that end in
'-[0-9]'. So far, it's something like


sed '/^.*\|.*-[0-9]\|/d'


but this deletes all lines because there can be a '|' between anything
and [0-9]. Thus I need to match anything but '|' instead.

[^|]


--
Why is it taking so long for her to bring out all the good in you?

Eduardo M KALINOWSKI
eduardo@kalinowski.com.br


Reply to: