1 | $ sed -e 'd' /etc/services |
1 | $ sed -e '1d' /etc/services | more |
1 | $ sed -e '1,10d' /etc/services | more |
1 | $ sed -e '/^#/d' /etc/services | more |
1 | $ sed -e '/regexp/d' /path/to/my/test/file | more |
1 | $ sed -n -e '/regexp/p' /path/to/my/test/file | more |
1 | $ sed -n -e '/BEGIN/,/END/p' /my/test/file | more |
1 | $ sed -n -e '/main[[:space:]]*(/,/^}/p' sourcefile.c | more |
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |