4 ms·
`tr [:punct:][:space:] "\n" < tmp.txt | sort -fu` No need to run tr twice, and the -f flag for sort makes it ignore case.
by qbrass 3y ago
`tr [:punct:][:space:] "\n" < tmp.txt | sort -fu`
No need to run tr twice, and the -f flag for sort makes it ignore case.
- warrenm 3y agofigured there was a way to do it in one pass ... but didn't have the brainwidth to do it :)