tr [:upper:] [:lower:] is super useful for ad-hoc data cleanup while bashing around. Something like: tr [:upper:] [:lower:] <hostnamesWithVaryingCase.txt | sort -u > uniquehostnames.txt (NB: I avoided useless use of cat this time...)
2
7
21
Replying to @jeffmcjunkin
Dealing with English ASCII only? Try “tr A-Z a-z”

Apr 24, 2018 · 6:51 PM UTC

1