Linux查看文件,去掉注释行和空白行

2020-08-02 17:32:23 浏览数 (1)

例子:查看filebeat配置文件

代码语言:javascript复制
# grep "^[a-Z]" /etc/filebeat/filebeat.yml
filebeat.inputs:
filebeat.config.modules:
setup.template.settings:
setup.kibana:
output.elasticsearch:
setup.template.name: "docker"
setup.template.pattern: "docker-*"
setup.template.enabled: false
setup.template.overwrite: true
processors:

0 人点赞