On the other paw, there's the shell version of a Schwartzian Transform:
for i in *.txt do mv $i $i~ perl -ne 'print length, "\t", $_' $i~ | \ sort +0n | uniq | cut -f2- > $i done
In reply to Re: Using -i in oneliner with postprocessing
by tkil
in thread Using -i in oneliner with postprocessing
by Anomynous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |