6 ms·protip: tr ' ' '\n' < foo | sort | uniqby stepvhen 8y agoprotip: tr ' ' '\n' < foo | sort | uniq