nl -s '|' with_dups.txt | sort -u -t '|' -k 9,13 | sort -n -b | cut -d '|' -f 2- > no_dups.txt