From: Austin Ziegler Date: 2005-06-02T02:29:11+09:00 Subject: Re: Document identification On 6/1/05, Robin Stocker wrote: > M. Eteum wrote: > > Is there a way to identify any documents from its header? I have a > > bunch of document collected over the year from multi platform system, > > Mac, Windows, and various unix/linux variant where some of the document > > does not have file extension. Are there a list that tells us what header > > should we expect for certain documents e.g. txt, rtf, pdf, jpg, mpg, > > word, excel, visio, etc ... > On a Unix system you could use the "file" command, it is able to detect > file types even when there's no extension. > I don't know if a Ruby module exists for this purpose though. Not yet. ;) I do plan on adding it to MIME::Types in the future. -austin -- Austin Ziegler * halostatue@gmail.com * Alternate: austin@halostatue.ca