grep -Ev '^$|^#' /xxx/xxx.conf
eg:
grep -Ev '^$|^#' /etc/ntp.conf
linux查看内容不显示注释
最新推荐文章于 2024-03-06 18:19:35 发布
grep -Ev '^$|^#' /xxx/xxx.conf
eg:
grep -Ev '^$|^#' /etc/ntp.conf