When your <i>one-liner</i> takes six lines, it is time to open up a text editor and write a decent shell or Perl or Python or whatever script which can be read and understood later.<p>Then, it might turn into 50 lines, but you'll know what it is doing, how it is doing it, and how to modify it if there is a problem or you need an enhancement.