【笔记】sed 替换最后出现的一个字符

sed  's/\(.*\),\(.*\)/\1;\2/'   youfile

将文件的最后一个,逗号改为分号;

印证了贪婪匹配


猜你喜欢

转载自blog.csdn.net/m0_37962554/article/details/80049752