tac reverses the contents of the file

1. Command function

Tac is the reverse spelling of cat, and its function is to display the contents of the file in reverse.

2. Grammar format

tac  option  file

3. Example of use

[root@localhost chu]# cat test.txt
abcdefg
ABCDEFG
[root@localhost chu]# tac test.txt
ABCDEFG
abcdefg

  

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324726804&siteId=291194637