如何去掉linux配置文件的注释行和空行

2025-03-23 07:07:47
推荐回答(1个)
回答1:

grep -v "^#" file | grep -v "^$" > temp
rm file
mv temp file