1

I having the following linux command to identify all .gif files and list its frames in the active directory:

identify -format '%n %i\n' -- *.gif

Now I want to modify and expand the command to fullfil the following:

  1. indentify just the .gif files with MORE than 1 frame

  2. look also in all subdirectories (right now the command is just looking at the active directory)

  3. a command to: a) list the identified files b) delete the identified files (more important)

Gilles 'SO- stop being evil'
  • 807,993
  • 194
  • 1,674
  • 2,175
w-f
  • 11
  • 1
  • 1
    _"I having the following linux command..."_ If you go back there and scroll down: [`find . -type f -name \*.gif -exec sh -c \ 'identify -format "%[fx:n>1]\n" "$0" | grep -q 1' {} \; -print -delete`](http://unix.stackexchange.com/q/224631) – don_crissti Oct 10 '16 at 09:40
  • @don_crissti awesome!! this did the job!! thank you a lot for yor help!!! very much appreciated! – w-f Oct 10 '16 at 18:16

0 Answers0