linux - Requires substitute arguments to perform a pearl script using bash -


requires substitute arguments perform perl script using bash. have script runs on gem this:

./script.pl "url" 

i needed substitute "url" substitute value of file using bash.thank you.

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

or

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

or

<file xargs ./script.pl 

or

xargs -a file ./script.pl 

Comments

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -