TR---translate conversion
TR Syntax Format:
TR [Options] Set1 Set2
Principle: Mapping Set1 into Set2 through the concept of set mappings
-Common parameters
-D: Specifies the set of characters that need to be deleted
-C: Using the collection's complement
Tr–c Set1 Set2 uses the complement of Set1, that is, all characters that do not contain Set1
-S: Compresses repeated characters in the input, matches consecutive repeated words to a single character
Application:
1. Encrypt and decrypt
2. Add digital files
Convert \ n in file to +, use $[operation] to perform arithmetic operations
3. TR set list
TR [: Class:] [: Class:]
Alnum: Letters and Numbers Alpha: letters
Digit: Digital Cntrl: Controlling (nonprinting) characters
Lower: Lowercase letter upper: Uppercase
Graph: Graphic character punct: punctuation
Space: Blank character xdigit: hexadecimal character
Tr:translate conversion for simple operation of Linux commands