3 ms·cat com.txt | cut -d' ' -f1 | sort | uniq Would work as well since there's no whitespace in the first columnby gouggoug 4y agocat com.txt | cut -d' ' -f1 | sort | uniq Would work as well since there's no whitespace in the first column