2011-10-27 79 views
0

是否有可能将wget的输出重定向为perl脚本的输入(我想如果它是perl或不是,不过只是一个通用命令)。喜欢的东西:将wget输出重定向到perl脚本输入

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

回答

1

bash

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

或者'wget的http://some.cool.site.com/data.txt | perl perl_command.pl' – Konerak

+0

@Prince bash:语法错误附近的意外标记'(' –

+0

@Konerak失败后的一段时间错误:分段错误 –