shell命令记录 1. 过滤注释和空行 cat /etc/rsyslog.conf|grep -v "#" | grep -v "^$" 2. flume日志采集: for i in /path/*.txt; do cat $i; done