【发布时间】:2011-02-14 19:28:00
【问题描述】:
我的 linux 系统上有以下 gif:
$ find . -name *.gif
./gifs/02.gif17.gif
./gifs/fit_logo_en.gif
./gifs/halloween_eyes_63.gif
./gifs/importing-pcs.gif
./gifs/portal.gif
./gifs/Sunflower_as_gif_small.gif
./gifs/weird.gif
./gifs2/00p5dr69.gif
./gifs2/iss013e48788.gif
...and so on
我写的是一个将GIF文件转换为BMP的程序,界面如下:
./gif2bmp -i 输入文件 -o 输出文件
我的问题是,是否可以使用 xargs、awk、find 等编写一行命令来为这些文件中的每一个运行一次我的程序?还是我必须写一个带循环的shell脚本?
【问题讨论】:
标签: command-line shell