On Tue, Dec 16, 2025 at 17:34:53 +0000, Albretch Mueller wrote:
>  While using "file" only once, I would like to get as output: "video/mp4; 
> charset=binary|ISO Media, MP4 v2 [ISO 14496-14]"

Then you have a couple possible approaches you can try:

 1) Look for a --format option or something similar, which lets you tell
    file(1) exactly which information to print, and how to print it.

 2) Look for a --all option that tells file(1) to print every single
    piece of information it has.  Then have your script parse this
    output and reorganize it into the format you desire.

If neither of these options exists, then you'll have to call the
program twice, or more, as you're already doing.

Reply via email to