in reply to
How to re-arrange and edit lines in a text file
You can do this with a "one-liner". Read about the run-time switches -i, -p, and -e in
perlrun
. Use the substitution that
Tybalt
provided.
Bill
Comment on
Re: How to re-arrange and edit lines in a text file
In Section
Seekers of Perl Wisdom