摘要: 要求:在1111之前添加AAA,命令如下: sed -i 's/指定的字符/要插入的字符&/' 文件 [root@localhost ~]# sed -i 's/1111/AAA&/' /tmp/input.txt [root@localhost ~]# cat /tmp/input.txt nul 阅读全文
posted @ 2020-03-04 11:51 勇~勇 阅读(1714) 评论(0) 推荐(0) 编辑