awk 去空格 awk `NR==1{print $5}` 按空格分割第一行第五列 #NR!=1 不输出第一行 cat查看文件去掉注释部分 cat /etc/redis.conf|grep -vE '^$|#'> filename