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

regexp: anything but |


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.

It's so silly that kaffeine hasn't built this in already ...

Reply to: