in reply to Re^2: Recursive substitution difficulties
in thread Recursive substitution difficulties
Thanks. That looks pretty straightforward. Is it possible to use that all on a command line invocation? Right now I have something like:
and then a follow-up to expand wrapper2 and the delimited fields within.perl -pe "s/^(.*?)\t(.*?)\|(.*?)\t(.*?)(?=\n)/<wrapper1>$1</wrapper1>< +wrapper2>$2\|$3</wrapper2><wrapper3>$4</wrapper3>/g;" inputfile
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Recursive substitution difficulties
by ikegami (Patriarch) on Mar 16, 2010 at 01:53 UTC | |
by wx27 (Initiate) on Mar 16, 2010 at 14:15 UTC |