sed 匹配到查询的内容注释这一行

sed -i '/ swap / s/^\(.*\)$/#\1/g' /etc/fstab

posted @ 2020-11-09 15:13  滴滴滴  阅读(1154)  评论(0编辑  收藏  举报