cdlaforc has asked for the wisdom of the Perl Monks concerning the following question:
Hello,
I'm trying to do the below substitution creating 4 back references and putting a 0 between them. I usually use ${1} syntax instead of \1, but I am running this command via ssh and this is not working. Because of this I don't know what to do between the \2 and 0 to make sure the second back reference is recognized. Any ideas?
Thanks,
Chris.
perl -pi -e 's/^(ISA\~.*?\~.*?\~.*?\~.*?\~.*?\~.*?\~.*?\~)(..........) +(....).(\~.*)$/\1\20\3\4/' PB385930.P0
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: problems with backreference
by ikegami (Patriarch) on Sep 06, 2011 at 15:33 UTC | |
Re: problems with backreference
by norbert.csongradi (Beadle) on Sep 06, 2011 at 14:21 UTC |
Back to
Seekers of Perl Wisdom