how to remove duplicates in txy file with grep output 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