I have a ascii file which seemed to have duplicate lines.
Here is a Perl one liner which will go through the file and prints those duplicate lines once it encounters.
perl -lne 'print if $s{$_}++'
Here is a Perl one liner which will go through the file and prints those duplicate lines once it encounters.
perl -lne 'print if $s{$_}++'

No comments:
Post a Comment