You are not logged in.

#1 2014-06-18 10:42:45

xanb
Member
Registered: 2012-07-24
Posts: 420

`file -bi` and `file` output at the same time

Hi,

Perhaps it's trivial but I do not find.

If I run

$ file ../proves-propref/1401.5978v1.copia
../proves-propref/1401.5978v1.copia: LaTeX 2e document, ISO-8859 text

and if I run

$ file -i ../proves-propref/1401.5978v1.copia
../proves-propref/1401.5978v1.copia: text/x-tex; charset=iso-8859-1

I want the output:

./proves-propref/1401.5978v1.copia:  LaTeX 2e document, ISO-8859 text,  charset=iso-8859-1

So I want to human description of the file + the charset encoding

How can I achieve that WITHOUT running file two times?

Thanks a lot,

Last edited by xanb (2014-06-18 10:43:19)


Owning one OpenRC (artoo way) and other three systemd machines

Offline

#2 2014-06-19 06:59:58

xanb
Member
Registered: 2012-07-24
Posts: 420

Re: `file -bi` and `file` output at the same time

I think this post should be in System Administration or Newbie Corner


Owning one OpenRC (artoo way) and other three systemd machines

Offline

Board footer

Powered by FluxBB