将http.conf中含有#的行输出: grep "#" httpd.conf >1.txt 将http.conf中不含有#的行输出: grep -v "#" httpd.conf >2.txt 相关文章: 2021-11-13 2021-11-20 2021-11-13 2021-11-28 2021-12-20 2021-11-30