filetype (detect file type)

Usage

filetype [-vsl] FILE

Synopsis

Detect type of a file and export result to a variable.

Options

-v verbose
-s VAR set variable VAR to shortname
-l list known filetypes