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

来源:学生作业帮助网 编辑:作业帮 时间:2024/06/11 19:34:49

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

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

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