Another interesting shell command is tr
. This translates, squeezes, or deletes characters from the standard input. The syntax will be as follows:
tr [OPTION]... SET1 [SET2]
The options for the tr
commands are explained in the following table:
SETs are a string of characters that can be specified using the following:
To provide an input text from a file and an output to a file, we can use the file redirection operators: <
(less than for input) and >
(greater than for...