sed "s/\<80\>/aa/g" test.txt -- 精确匹配80,修改为aased "s/\<80\>,/aa/g" test.txt-- 精确匹配"80,",修改为aased "s/,\<80\>,/aa/g" test.txt-- 精确匹配",80",修改为aa
本文共 182 字,大约阅读时间需要 1 分钟。
sed "s/\<80\>/aa/g" test.txt -- 精确匹配80,修改为aased "s/\<80\>,/aa/g" test.txt-- 精确匹配"80,",修改为aased "s/,\<80\>,/aa/g" test.txt-- 精确匹配",80",修改为aa
转载于:https://blog.51cto.com/8193146/1652686