任何人都可以解釋使用read i
的部分。 i
從哪裏來。關於bash shell腳本的澄清
scp -i ~/.ssh/id_rsa.sample [email protected]:ready/$2/*.zip ./$2 > slate.out 2>&1
ls -1 $2/* > curr.lst 2>/dev/null
while
read i
do
if
test -e ../done/"$i"
then
diff "$i" ../done/"$i" >/dev/null 2>&1
if
test $? -eq 0
then
rm "$i"
fi
fi
done < curr.lst
對此的簡短回答是**否**有大量文檔可用於Bash,scp,diff以及此腳本的所有其他部分。如果你有關於部分語法的*特定*問題,請修改你的問題來說明。 –
我知道這是有點苛刻,但我很困難。而使用'read i'的部分我無法得到'i'從哪裏來。 –
讀命令正在讀取您在末尾指定的文件描述符中的數據... – Teja