0
folder_name=(MI IG Chi-square)
for m in {0..2}
do
folder=${folder_name[$m]}
echo
echo $folder
echo
train_path="/home/user/Thesis/DVD/Features/Training/POSITIVE/$folder/Unigram/"
test_path="/home/user/Thesis/DVD/Features/Testing/POSITIVE/$folder/"
for f,k in $train_path $test_path
do
if $f in *.arff and $k in *.arff ; then
echo $f,$k
done
done
這是打開兩個目錄,如train_path和$ test_path,我想提取這些路徑simultenously.I所有ARFF文件可以解決這個問題的代碼?任何機構可以幫助?開放多發性目錄中外殼採用相同的for循環
我想提取這些目錄中的文件也?? – user3512562