On 3/15/07, Dave McGuire <mcguire at neurotica.com> wrote:
Try this experiment on pretty much any
UNIX-likesystem:
apophis$ cat > foo.txt
GIF89a is a half-decent file format.
apophis$ file foo.txt
foo.txt: GIF file, v89
Nice demo. I already knew about how file works, how the "database" is
structured, and I've even tweaked it once or twice to handle new files
(Infocom game files, FWIW ;-), but I'd never tried a simple little
thing like that. I can see how it would work, but it just never
occurred to me to try that.
-ethan
(who uses 'file' several times a week)