in reply to Perl in Bash
to fix, try:
Which gets the $p outside the single quotes. (untested)perl -pe 's%REPLACE_HERE%'$p'%g' abc.txt > $p
"You're only given one little spark of madness. You mustn't lose it." - Robin Williams
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl in Bash
by morgon (Priest) on Mar 16, 2015 at 16:50 UTC |