用grep命令和-v参数过滤掉以#开头的行和空格行 Posted on 2018年5月23日 by allenmo Shell cat /etc/squid/squid.conf |grep -v ^# |grep -v ^$ 1 cat /etc/squid/squid.conf |grep -v ^# |grep -v ^$ Post Views: 2,202