小楼东风 发表于 2007-3-17 12:52:24

我改得shell错在哪里?

我需要更改一批文件的分辨率,有400多个,用下面的shell来做,
for i in *; do convert $i -resize 64x64 $i; done
不少文件名可能都有空格,结果只能更改几个文件后命令就僵死了。
convert: missing an image filename `X..png'.
convert: unable to open image `CD': No such file or directory.
convert: unable to open image `ROM.png': No such file or directory.
convert: unable to open file `ROM.png'.
convert: unable to open image `CD': No such file or directory.
convert: missing an image filename `ROM.png'.

小楼东风 发表于 2007-3-17 12:54:51

帖子发错了版块,请删除。
页: [1]
查看完整版本: 我改得shell错在哪里?