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