句法:
while read l
do
export filename=$l
if [[ `echo $filename | sed -n 's:TEST.*/TEST:&:p'` -ne 0 ]];
then
echo "both are same : $filename"
else
echo "diff: $filename"
fi
done < scripts2.txt*
问题:通常它工作正常。但是对于以下数据,它会引发语法错误......
<TEST><![BIGDATA[$EXECUTE SCRIPT ON ALL SERVER $WELCOME#]]></TEST>
请让我知道确切的问题是什么????