Rev
Rev Displays the last character displayed to the first character.
Cases:
The code is as follows:
[Root@localhost www]# Cat Test
1234
Abcd
[Root@localhost www]# Rev Test
4321
Dcba
[Root@localhost www]# TAC Test
Abcd
1234
Tac
Usage: TAC [options] ... [File] ...
Each specified file is inverted by line and written to standard output.
If you do not specify a file, or if the file is "-", the data is read from standard input.
Parameters that must be used for long options are also required for short options.
-B,--before add a separator flag before and after a row
-R,--regex the delimited flag as a regular expression to parse
-S, the--separator= string uses the specified string instead of a newline as the separator flag
--HELP displays this help information and exits
--version display version information and exit
Cases:
The code is as follows:
[Root@localhost www]# Cat Test
1234
Abcd
[Root@localhost www]# Rev Test
4321
Dcba
[Root@localhost www]# TAC Test
Abcd
1234