值得一提的shell命令

tac命令ide

[root@localhost ~]# cat 1.txt
1spa

2it

3class

4di

5
[root@localhost ~]# tac 1.txtview

5vi

4co

3join

2editor

1

rev命令

[root@localhost ~]# cat 1.txt

1234567

[root@localhost ~]# rev 1.txt

7654321

join命令

[root@localhost ~]# cat 1.txt

1 aaa

2 bbb

3 ccc

[root@localhost ~]# cat 2.txt

1 eee

2 fff

3 ggg

[root@localhost ~]# join 1.txt 2.txt >3.txt

[root@localhost ~]# cat 3.txt

1 aaa eee

2 bbb fff

3 ccc ggg