in reply to Re: Perl in Bash
in thread Perl in Bash

Or maybe simpler
perl -pe "s%REPLACE_HERE%$p%g" abc.txt > $p