...
> egrep ..... >> $TMP
This is sorta off topic, but setting umask is not enough.
Someone else could have a file of the same name as $TMP
What I tend to do is make a directory and put files in
there. You're guaranteed that mkdir will return error
if it exists already.
And/or just use the shell's pid in the temporary file name, e.g.
TMP=/tmp/mail-address.tmp.$$
There is also mktemp(1) for this, so maybe:
TMP=`mktemp /tmp/mail-addresses.XXXXXXXXXX`
-- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
