正確的做法是用你所用的 shell 提供的迴圈來做。若你的系統中有 "basename" 這個指令:. C Shell: foreach f ( *.foo ) set base=`basename $f .foo` mv $f $base.bar ...
確定! 回上一頁