删除注释行和空行

sed -e "s/#.*//g" server.properties | awk '{if (length !=0) print $0}'

posted @ 2016-07-31 12:25  Thomas_188  阅读(201)  评论(0编辑  收藏  举报