Just got this cool tech tip from Linux Journal. If like me, you hate to open
an app just to get an e-mail adress that you can't remember, then this trick
works great (and I suppose you could use your imagination here and setup up a
list for just about anything, not just e-mails). Hope you like it. ;-)
Put this in .bashrc (/home/user, of course):
addy ()
{
if [ $# -eq 1 ]
then
grep -i "$1" "$HOME/.mail_aliases" | mawk '{ print($3) }'
else
echo "Usage: addy <searchstring>"
fi
}
Now, use your fav. text editor and create a file named .mail_aliases (or
whatever - but you'll have to change that entry in .bashrc to match).
Enter your data in the following format (this is like mutt, I think?):
alias username [EMAIL PROTECTED]
So for example, if I have an entry like:
alias ron [EMAIL PROTECTED]
(Note that "ron hall" would not work, it needs to be a single name, nick, or
abbreviation)
Then from a term/shell, typing in "addy ron" will return:
[EMAIL PROTECTED]
Neat, huh? ;-)
--
/\
Dark><Lord
\/
Want to buy your Pack or Services from MandrakeSoft?
Go to http://www.mandrakestore.com