Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/bash/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Linux 需要替换参数才能使用bash执行pearl脚本_Linux_Bash_Shell - Fatal编程技术网

Linux 需要替换参数才能使用bash执行pearl脚本

Linux 需要替换参数才能使用bash执行pearl脚本,linux,bash,shell,Linux,Bash,Shell,需要替换参数才能使用bash执行Perl脚本。 我有一个在gem上运行的脚本,如下所示: ./script.pl "URL" 我需要用bash替换“URL”替换文件的值。谢谢 ./script.pl "$( cat file )" 或 ./script.pl "$(< file )" <file xargs ./script.pl xargs -a file ./script.pl

需要替换参数才能使用bash执行Perl脚本。 我有一个在gem上运行的脚本,如下所示:

./script.pl "URL"
我需要用bash替换“URL”替换文件的值。谢谢

./script.pl "$( cat file )"

./script.pl "$(< file )"
<file xargs ./script.pl
xargs -a file ./script.pl