原文件:
[root@system1 ~]# cat test
test word
test word
test word
test word
test word word
test word hello
test word nihao
test word nihao
test word hi
test word
test word
test word
test word
test word
test word
test word
awk修改写入原文件后的文件:
[root@system1 ~]# cat test
test word
test word
test word
test word
test word word
test word hello
test word ni
test word ni
test word hi
test word
test word
test word
test word
test word
test word
test word
#注意:重定向符号后面的文件名需要加双引号
原文件:
[root@system1 ~]# cat test
test word
test