for FILE in /data/intervals/*.txt; do
ID=echo ${FILE}
/data/bin/Tool -a /data/check.txt -b ${FILE} > /data/final/Outputed_${ID}
done
给予:
-bash: /data/intervals/CT.BP.200.txt: Permission denied
-bash: /data/final/Outputed_${ID}: ambiguous redirect
-bash: /data/intervals/CT.BP.500.txt: Permission denied
-bash: /data/final/Outputed_${ID}: ambiguous redirect
-bash: /data/intervals/CT.BP.50.txt: Permission denied
-bash: /data/final/Outputed_${ID}: ambiguous redirect
....
等等
我找不到任何拼写错误。有人可以帮我弄这个吗?