in reply to
The problem with one-liners...
Unless, of course, the solution was saved somewhere... I maintain a file called oneliners.txt in my perl source directory, and it's saved me all kinds of pain and suffering. One or two of the entries might do better as 5-10 line scripts, but then again, they might not--and I certainly wouldn't do better with another however many (about a dozen at the moment) random single-purpose scripts lying around for me to keep track of.
If God had meant us to fly, he would *never* have given us the railroads.