Is there a way to filter out all unique lines in a file via commandline tools without sorting the lines? I'd like to essentially do this:
sort -u myFile
without the performance hit of sorting.
Is there a way to filter out all unique lines in a file via commandline tools without sorting the lines? I'd like to essentially do this:
sort -u myFile
without the performance hit of sorting.
Remove duplicated lines:
This is famous awk one-liner. there are many explanations on inet. Here is one explanation: