0
想一個腳本來從我的內部從目錄中的文件夾移動到外部硬盤....如何從shell腳本中移動目錄中的目錄?
#!/bin/bash
for i in *; do
if [[ $i == [* ]]; then
mv $i /entertainment/movies/;
fi
done
我得到下面的錯誤:
mv: cannot stat 'DVDRip': No such file or directory
mv: cannot stat '-': No such file or directory
mv: cannot stat 'x264': No such file or directory
mv: cannot stat '-': No such file or directory
mv: cannot stat 'DD5.1': No such file or directory
mv: cannot stat '-': No such file or directory
mv: cannot stat '1GB': No such file or directory
mv: cannot stat '-': No such file or directory
mv: cannot stat 'ESub': No such file or directory
添加引號包圍'$ i':'「$ I」' –
它的伎倆......的「MV」正在執行......應該已經添加了詳細確認它快一點.. .. – coolstoner