Viewing 1 to 2 of 2 items
Tag Archives: Time Stamp

Remove duplicate lines with uniq

After sorting a file you will often find that some duplicate data, or you may be given various lists that need deduping. sort and uniq will quickly and easily remove duplicates, lsit only the dupilcates or only the unique data. sort myfile.txt | uniq List only the unique lines: sort myfile.txt | uniq -u List only the duplicate lines: sort myfile.txt  Full Article…

0