3 Nov
2004
3 Nov
'04
11:38 a.m.
On 2004-11-03 11:25:14 +0000 Brett Parker <iDunno@sommitrealweird.co.uk> wrote:
it will cheerfully play with any of the headers that happen to have [ALUG] in them. Not nice.
Correct.
sed 's/^\(Subject: .*\)\[ALUG\] \(.*\)$/\1\2/;' which will *only* play with the Subject header.
Why not sed '/^Subject: /s/\[ALUG\]//' # instead? The leading regex means that the s command will only act on matching lines. -- MJR/slef My Opinion Only and not of any group I know Creative copyleft computing - http://www.ttllp.co.uk/ Unsolicited attachments to the pipex address deleted Will HLF fund tree-killings? http://www.thewalks.co.uk/