This can easily be done using ImageMagick
identify -format '%n %i\
' -- *.gif
12 animated.gif
1 non_animated.gif
`identify -format %n` prints the number of frames in the gif; for animated gifs, this number is bigger than 1.
(ImageMagick is probably readily available in your distro's repositories for an easy install)