linux中sed在指定字符先後添加內容

假設文檔內容以下: 1 2 3 4 5 [root@localhost ~]# cat /tmp/input.txt null 000011112222   test 要求:在1111以前添加AAA,方法以下:css sed -i 's/指定的字符/要插入的字符&/'  文件html 1 2 3 4 5 6 [root@localhost ~]# sed -i   's/1111/AAA&/' 
相關文章
相關標籤/搜索