in reply to Using -i in oneliner with postprocessing
Update: D'oh! I knew to do that! Thanks, Merlyn.perl -i.bak -nlwe '$h{$_}++; if (eof) {print for sort { length($a) <=> + length($b) } keys %h; %h=();}' junk.txt junk2.txt
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
•Re: Re: Using -i in oneliner with postprocessing
by merlyn (Sage) on Apr 28, 2004 at 15:44 UTC |