− determine type of XML files.
searches the initial part of each FILE in an attempt to
identify it, printing the result to the standard output.
is not a replacement for file(1), and only attempts
to identify XML files, not other types of files, and cannot
guarantee that a file is well formed or valid, since only
the initial part is inspected.
Show all the data collected
from the file.
returns 0 on success, or 1 otherwise.
Make a list of
XML files in the current directory:
% xml-file * | grep -v unrecognized | cut -f1 -d ’:’
There is no
local magic file that contains all the identification
A. Breyer is the original author of this software. The
source code (GPLv3 or later) for the latest version is
available at the following locations: