你好用这种方式写sed -i test a test1 111txt sed 1 pam_unix_authc extra characters at the end of p command
您好, sed -i 's/test/test1/g' 111.txt 这条命令的含义是将111.txt中所有的test都替换成test1,并且-i选项表示直接在原文件上进行修改,不生成临时文件。
原文地址: https://www.cveoy.top/t/topic/bFyV 著作权归作者所有。请勿转载和采集!