标签:
cat $1 | grep -v "^#" | egrep -v " +$" | sed s/[[:space:]]//g | grep -v "^#" | while read line;do len=`echo $line | wc -L` if [[ $len -gt 0 ]];then echo $line >> "$1".tmp fi done
上面的代码可以将
#abcd
UUUU
UUU#abc
UUUa=b
UUUpassword=#?==#FSS
aU=Ub
改写成
a=b
password=#?==#FSS
其中U代表空格
标签:
原文地址:http://www.cnblogs.com/boucher/p/5796774.html