[Email protected] zsh]#CatFstab.stest1: .test2: .[email protected] zsh]#CatFstac.stest1: .test2:2018[email protected] zsh]#Cat*. S #合并文件test1: .test2: .test1: .test2:2018[email protected] zsh]#Cat*.s |Sort#合并和排序文件test1: .test1: .test2: .test2:2018[email protected] zsh]#Cat*.s |Sort|Uniq#合并和排序文件, leave the unique line test1: .test2: .test2:2018[email protected] zsh]#Cat*.s |Sort|Uniq>Test.txt #合并和排序文件, leave the unique line [[email protected] zsh]#CatTest.txttest1: .test2: .test2:2018[email protected] zsh]#Cat/dev/NULL>test.txt #清除文件内容 [[email protected] zsh]#CatTest.txt[[email protected] zsh]#
[Email protected] zsh]#CatFstab.stest1: .test2: .[email protected] zsh]#TR 2 3< FSTAB.S #2⇒3test1:3016test3:3017[email protected] zsh]#TR 'A- z' 'A- z'<fstab.s #小写 ⇒ Capital TEST1: .TEST2: .[email protected] zsh]#TR 'A- z' 'A- z'< FSTAB.S >test.txt #小写 ⇒ capitalization [[email protected] zsh]#CatTest.txttest1: .TEST2: .[email protected] zsh]#
Not to be continued
Shell Programming Learning Note _20160114