5 ms·Why not: awk '/bar/ { print $1 }' file | sort -uby abjr 13y agoWhy not: awk '/bar/ { print $1 }' file | sort -u