sed -n 's/\.$/a/p' file

来源:学生作业学帮网 编辑:学帮网 时间:2024/05/28 22:01:25

sed -n 's/\.$/a/p' file

将file文件中以.号结尾的行替换为a并打印到终端屏幕.

肿么sed都来了,发错地方了