in reply to The problem with one-liners...
I too save one-liners in a text file, but i
really feel that if i can't come up with a one-liner in
about the same time it takes me to post a short reply here
at PM, then i have no business using a one-liner for the
task at hand. One-liners are stream of thought conciousness,
so to speak - true throw-away scripts. Anything else should probably be in a file that includes strict and warnings.
jeffa
perl -lpe '}{$_=$.' somefile
In Section
Meditations