标签: sed
thumbnail

linux 中 sed 的使用

再每一行中的末尾添加字符 sed 's/$/test/g' 1.txt ##每行末尾插入字符,正则表达式$代表末尾 sed 's/^/test/g' 1.xt ##每行末尾插入字符,正则表达式^代表末……