Cavaet: be sure to double check for linewraps (the backslash line endings) in the below script code:
#!/bin/sh case $1 in h | help | -h | -help) echo "Useage:" echo "To add a user to the phonebook do: pb add Joe Blow 123-456-8900" echo "To remove a user from the phone book do: echo "pb delete <first or last name>" echo "NOTE: when deleting a user be sure to use either \ first or last name, whichever is unique." echo "If you use parens in your phone number be sure to put \ double quotes around the phone number." esac case $1 in # add) echo $2 >> ~/.phonebook;; add) echo $2 $3 $4 >> ~/.phonebook;; delete) cat ~/.phonebook | grep -v $2 > /tmp/phonebook && \ mv /tmp/phonebook ~/.phonebook;; esac case $1 in f | find | -f | -find) egrep $2 ~/.phonebook;; esac[robg adds: I haven't tested this script as I use my Palm or AddressBook to find information. But if you spend most of your time in the Terminal, this could be a helpful script.]

