|

楼主 |
发表于 2006-3-6 18:39:18
|
显示全部楼层
#!/bin/sh
filename=${1}
newname=${2}
cat $filename | while read line ; do
if test ^["#"] ; then [color="black"][color="Orange"]#这一行是错的,该怎么该?
echo $line
fi
done
Post by made_in_chn
很多conf文件里用#作注释的,想去掉,写个脚本,怎么用正则表达式什么的匹配啊? |
|