阅读背景:

linux awk把修改写入原文件中

来源:互联网 
原文件:
[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 



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: