得水小筑

Linux去除文件注释和空行

去除注释和空行

grep -v "^#" /etc/redis/redis.conf | grep -v "^$"

去除注释和空行并写入文件

grep -v "^#" /etc/redis/redis.conf | grep -v "^$" > /etc/redis/new_redis.conf

当前页面是本站的「Google AMP」版。查看和发表评论请点击:完整版 »