in reply to finding and deleting repeated lines in a file
perl -ne 'print unless $seen{$_}; $seen{$_}++' in.txt > out.txt
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: finding and deleting repeated lines in a file
by marvell (Pilgrim) on Jun 19, 2002 at 14:50 UTC |