shll 中被单引号括起来的变量是不会被转义的
for dir in `ls -d *result`
do
rootpath=`pwd`
echo "ls ${rootpath}/${dir}/*.xml"
ls ${rootpath}/${dir}/*.xml | wc -l
done
shll 中被单引号括起来的变量是不会被转义的
for dir in `ls -d *result`
do
rootpath=`pwd`
echo "ls ${rootpath}/${dir}/*.xml"
ls ${rootpath}/${dir}/*.xml | wc -l
done