[NBLUG/talk] Current Alert Status

Eric Eisenhart eric at nblug.org
Mon Apr 21 10:56:02 PDT 2003


On Mon, Apr 21, 2003 at 10:41:13AM -0700, Kyle Rankin wrote:
> wget -q -O - http://www.whitehouse.gov/homeland/ | perl -ne 'print "Terror
> Level is: $1\n" if /src=\"\/homeland\/images\/threat\/\w+.jpg\"
> alt=\"(\w+)\"/;'
> 
> (pardon the leaning toothpicks)

No need for so many toothpicks:
wget -q -O - http://www.whitehouse.gov/homeland/ | perl -ne 'print "Terror
Level is: $1\n" if m{src="/homeland/images/threat/\w+.jpg" alt="(\w+)"};'
-- 
Eric Eisenhart
NBLUG Co-Founder & Vice-President Pro Tempore
The North Bay Linux Users Group
http://nblug.org/
eric at nblug.org, IRC: Freiheit at freenode, AIM: falschfreiheit, ICQ: 48217244
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://nblug.org/pipermail/talk/attachments/20030421/063eb471/attachment.pgp


More information about the talk mailing list