[File] Request for help on how to build a magic pattern file

Christos Zoulas christos at zoulas.com
Fri Feb 23 15:54:15 UTC 2024


The linux mdoc -> html converter leaves a lot to be desired. Try: https://man.netbsd.org/magic.5
The formatting should help.

christos

> On Feb 22, 2024, at 7:24 PM, bradpaixaopitt at gmail.com wrote:
> 
> Hi,
> 
> I need to build some magic files (that I later intend to submit to this project) to enable the identification of some proprietary file formats, as I'm writing a library to parse those files. 
> I have already figured out how the headers are structured but was unable to write functional magic files for them. I tried to follow the magic file manpage (https://linux.die.net/man/5/magic), but found that piece of documentation one of the most cryptic I've ever come across. 
> So that's why I'm sending a message here to request help.
> 
> Brad
> 
> 
> -- 
> File mailing list
> File at astron.com
> https://mailman.astron.com/mailman/listinfo/file



More information about the File mailing list