打印行。-n取消默认的打印,-n和p同时使用,sed可打印选定的内容
# sed '/#/p' if.h # sed -n '/#/p' if.h
删除行
# sed '/#/d' if.h # sed '$d' if.h //删除最后一行