1、转换冒号两边的值 second:firsttwo:one sed -e 's//(.*/):/(.*/)//2:/1/' dd.txt /'表示转义单引号 追加 a/ 插入 i/ 更改 c/ 删除 d/