for file hi in $src1 $src2 do echo here are $file $hi done
------解决方案-------------------- 1 #!/bin/bash 2 3 src1=/home/ubuntu/quinton/search/test1 4 src2=/home/ubuntu/quinton/search/test2 5 6 for file in $src1; do 7 8 echo here are $file 9 done 10 for hi in $src2; do 11 12 echo here are $hi 13 done