cat 2.txt 18668331562 18668331562 13163033397 #csjdz54188 #13163033397 csjdz54188 #13163033397 csjdz54188 #13163033397 csjdz54188 #13163033397 csjdz54188 #13163033397 csjdz54188 #13163033397 csjdz54188
把开头为 # 的行过滤掉
grep -Ev ‘^[[:space:]].*|^#‘ 2.txt 18668331562 18668331562 13163033397 #csjdz54188
sed -e ‘/^[[:space:]].*/d‘ 2.txt -e ‘/^#/d‘ 18668331562 18668331562 13163033397 #csjdz54188
本文出自 “勿忘初心” 博客,请务必保留此出处http://winterysea.blog.51cto.com/9677346/1709825
原文地址:http://winterysea.blog.51cto.com/9677346/1709825