perl -pe "s%REPLACE_HERE%$p%g" abc.txt > $p [download]
In reply to Re^2: Perl in Bash by morgon in thread Perl in Bash by khiawyen