Originally posted by MaxPower2k3:
FILExt is your friend
/usr/bin/file on a Mac OS X system would actually look at the first few bytes of a file and look them up in a database (just a text file) and tell you what the file is. More reliable than the extension.
-A