Ae.
Ae.

Reputation: 204

Redirect wget output to perl script input

Is it possible to have the output of a wget redirected as input of a perl script (i guess it doesn't matter if it's perl or not, just a generic command). Something like:

perl perl_command.pl < wget http://some.cool.site.com/data.txt

Upvotes: 0

Views: 462

Answers (1)

Prince John Wesley
Prince John Wesley

Reputation: 63698

In bash:

perl perl_command.pl < (wget http://some.cool.site.com/data.txt)

Upvotes: 1

Related Questions