linux查看内容不显示注释

grep -Ev '^$|^#' /xxx/xxx.conf

eg:

grep -Ev '^$|^#' /etc/ntp.conf

猜你喜欢

转载自blog.csdn.net/weixin_41282397/article/details/80705751