這是什麼錯誤?bash while循環中的語法錯誤
j=0
filenames=("")
filedates=("")
while read line
do
filenames[$j]="$line"
filedates[$j]=$(stat -c %y ${filenames[$j]} | cut -d ' ' -f1)
((j++))
done < <(ls -t *.gz)
日期:
script.sh: line 9: syntax error near unexpected token `<'
script.sh: line 9: `done < <(ls -t *.gz)'
我真的不知道該while循環的錯誤,我測試了好機器,但同樣的問題上
請閱讀http://stackoverflow.com/help/someone-answers –