1. #!/bin/sh
# Wed Feb 11 02:54:00 EST 2004
# NAME: phdel
# Copyright 2004, Chris F.A. Johnson
# Released under the terms of the GNU General Public License
if [ "$1" = "-s" ]
then
phlist=/info/data/phones
shift
else
phlist=$HOME/.phones
fi
grep -v "$1" $phlist > /tmp/phdel$$
mv /tmp/phdel$$ $phlist