sed 学习 itoday · 2012-07-24 17:06 · 操作系统 · Markdown 可在行首加入# sed -i '/home/{s/^/#/}/' /etc/fstab 另一个例子 sed '/import/{s/^/#/;s/$/ test/}'