On Tue, Nov 23, 2010 at 04:52, LuKreme <[email protected]> wrote:
>
> What I want to do is delete all the .gif files where there is a matching .jpg.

Is this intended to find the dupes solely by filename?  The following
will do that.

mkdir dupe-gifs
for JPG in *.jpg ; do
BASE=$(basename "$JPG" .jpg)
mv "$BASE".gif dupe-gifs/
done

or on all one line:

mkdir dupe-gifs && for JPG in *.jpg ; do BASE=$(basename "$JPG" .jpg)
; mv "$BASE".gif dupe-gifs/ ; done

-- 
arno  s  hautala    /-|   [email protected]

pgp f81c4e00
_______________________________________________
OSX-Nutters mailing list | [email protected]
http://lists.tit-wank.com/mailman/listinfo/osx-nutters
List hosted at http://cat5.org/

Reply via email to