使用grep查找文件并输出

将http.conf中含有#的行输出:

grep "#" httpd.conf >1.txt

将http.conf中不含有#的行输出:

grep -v  "#" httpd.conf >2.txt

posted @ 2012-09-10 19:53  xiahaitao  阅读(1724)  评论(0编辑  收藏  举报