Output:INPUT1="FOO1" INPUT2="FOO2"; RESULT=`perl -E 'for ( @ARGV) { s/FOO/BAR/; say ;}' $INPUT1 $INPUT2`
$ echo $RESULT BAR1 BAR2
In reply to Re: Embedding perl in bash
by Laurent_R
in thread Embedding perl in bash
by wackattack
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |