how to remove DUP in txt with grep code example
Example 1: grep remove duplicates
sort -t: -u -k1,1
Example 2: grep ignore repeated lines
Just comgine "sort -u" with grep command to ignore repeated lines:
grep file_name | sort -u
sort -t: -u -k1,1
Just comgine "sort -u" with grep command to ignore repeated lines:
grep file_name | sort -u