5 ms·
$ cat com.txt | sed 's/^\(\S*\.com\)\.\s.*/\1/' | sort | uniq A bit easier than a ruby script
by grifball 4y ago
$ cat com.txt | sed 's/^\(\S*\.com\)\.\s.*/\1/' | sort | uniq
A bit easier than a ruby script
- gouggoug 4y agocat com.txt | cut -d' ' -f1 | sort | uniq Would work as well since there's no whitespace in the first column