linux命令之grep:过滤注释行和空白行 cat elasticsearch.yml | grep "^s*[^# ].*$" cat elasticsearch.yml | grep -v ^# |grep -v ^$