From: Robin Stocker Date: 2005-06-02T01:39:25+09:00 Subject: Re: Document identification 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 ... Hi, 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. Regards, Robin