On Thu, 09 Jul 2009, Martin Gregorie wrote:

> Here's a simple bash shell script fragment that does the job and does it
> fairly fast:
> 
> ========================================================================
> for f in data/*.txt
...
>         gawk '
...
> done
> ========================================================================

Having also Non-LINUX-Users on the list, you might have explained
that THIS script needs 'gawk' (old awk would be enough) and
works on 'alle the Files in one directory, if their names
end on '.txt' :-) E.g. my mail-collection-files mostly end on
'*.box' or '*.eml' and my old Solaris never had any 'gawk'.
The trick to delete all runs of 'X' Headers from 'X-Spam' on
is a good idea (execept e.g. if the next Header is 'X-remote-IP'
and you want to check for internal Mail :-).

Stucki
-- 
Christoph von Stuckrad      * * |nickname |Mail <[email protected]> \
Freie Universitaet Berlin   |/_*|'stucki' |Tel(Mo.,Do.):+49 30 838-75 459|
Mathematik & Informatik EDV |\ *|if online|  (Di,Mi,Fr):+49 30 77 39 6600|
Takustr. 9 / 14195 Berlin   * * |on IRCnet|Fax(home):   +49 30 77 39 6601/

Reply via email to