From: "M. Eteum" Date: 2005-06-02T03:05:23+09:00 Subject: Re: Document identification Austin Ziegler wrote: > 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 Super! Oh by the way, do you know if Perl or Python has it? I'm quite desperate to find the solution, therefore I'll take any solution while waiting for the Ruby modules. Thanks