Comments on Linux tr Command Tutorial for Beginners (with Examples)
Depending on the kind of work you do on the command line in Linux, you may want a utility that can act as a Swiss army knife for quick text editing. Gladly, there exists a tool dubbed tr, which qualifies for this role.
1 Comment(s)
Add comment
Comments
By: TiTex
Delete everything but the complement of SET1
$ echo "13abc33xyz" | tr -dc '[a-z]'
abcxyz
Random password generator:
tr -dc [:alnum:] </dev/urandom | head -c 22