For use in a Perl cgi script, what's an equivalent of the following awk command
awk '/user@example.com/ {print $2}' /home/bob/db.txtAssume db.txt contains 4 columns, with a valid email address in the first column, and a password in the second column. (For this purpose, security isn't an issue.) I just want to retrieve a password associated with an email address.
In reply to Perl equivlanet of simple awk by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |