卖女孩的火柴There are more things in heaven and earth, Horatio, than are dreamt of in your philosophy.
可以实现:
lclDirOut="/path/to/somedirectory"
for xmlfile in "${lclDirOut}/*.xml" ; do
? ackfile="${xmlfile%.*}.ack"
? if [ -f ${ackfile} ] ; then
??? mv ${ackfile} /path/to/outputdirectory
? fi
done
只需要检查 .ack 文件是否存在。... 展开详请