Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Perl equivlanet of simple awk
by repellent (Priest) on Mar 19, 2011 at 22:19 UTC | |
Re: Perl equivlanet of simple awk
by wind (Priest) on Mar 19, 2011 at 22:16 UTC | |
Re: Perl equivlanet of simple awk (a2p)
by LanX (Saint) on Mar 20, 2011 at 02:17 UTC | |
Re: Perl equivlanet of simple awk
by urbansumo (Novice) on Apr 15, 2015 at 11:52 UTC |
Back to
Seekers of Perl Wisdom