Lonely Dreamer (sanmai) wrote,
Lonely Dreamer
sanmai

How do I find animated gifs out of plain ones?

for i in *.gif; do 
  if test `identify -format %n "$i"` -gt 1; then 
    echo "$i"; 
  fi; 
done;
Или с помощью find:
find . -name '*.gif' -exec sh -c \
'test `identify -format %n {}` -gt 1' \; -print
Tags: bash, linux, useful
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments