[tpm] find, manipulate, then output
antoniosun at lavabit.com
Mon May 28 06:59:15 PDT 2012
I want to work on the strings that I find in the input, then output the
I'm wondering what's the elegant way to do it.
IIRC, it can be done with something like this
perl -ne 'print $2 . ", ". $1. "\n" while(/.../)'
But I really can't work out the rest now.
Here is an example that you can work on. Given the following input,
I want to output, "<last-name>, <first-name>" on each line.
I.e., the output would be:
<title>The Autobiography of Benjamin Franklin</title>
<title>The Confidence Man</title>
. . .
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the toronto-pm