#!/bin/sh
# http://www.berklix.com/~jhs/bin/.sh/nospam
# bourne shell script by Julian H. Stacey

# To make web pages less useful for spammers who gather addresses
# with web crawlers.
# called by ~/bin/.sh/nospamweb
# PS browse http://www.euro.cauce.org/en/

echo Doing $1
sed s/@/_ERASE@/RASE_/g < $1	| sed s/ERASE_ERASE_@/ERASE_@/g \
	> $HOME/tmp/nospam.$$
cat $HOME/tmp/nospam.$$ > $1	
# cat rather than mv, to preserve hard link, perms etc.
rm $HOME/tmp/nospam.$$
