grep -Ev '^$|^#' /xxx/xxx.conf
eg:
grep -Ev '^$|^#' /etc/ntp.conf
linux查看内容不显示注释
最新推荐文章于 2022-07-29 18:34:47 发布
grep -Ev '^$|^#' /xxx/xxx.conf
eg:
grep -Ev '^$|^#' /etc/ntp.conf