in reply to Re^2: yargs -- xargs but handle spaces in filenames
in thread yargs -- xargs but handle spaces in filenames

find ./ -type f -iname "*jpg" -size +1M | xargs --delimiter=\\n mogrif +y -resize 800x600

Edit by tye to replace PRE tags with CODE tags

Replies are listed 'Best First'.
Re^4: yargs -- xargs but handle spaces in filenames
by pingo (Hermit) on Jul 16, 2009 at 14:46 UTC
    --exec is still my preference, though (looks a bit nicer, imho, and no risk of the argument list being too long in case you just pipe everything and the kitchen sink to it):

    find ./ -type f -iname "*jpg" -size +1M --exec mogrify -resize 800x600 + {} \;