FILETYPE(1) Printing Tools FILETYPE(1)
filetype, fileopen, filealtopen, wstype - determine filetype of specified
file or files
filetype [-v] [ -d filetypeDataBasePath ] [-o | -a ] file...
filetype is a utility used to determine the IRIX Interactive Desktop
(IID(1G)) file type of a file or set of files. filetype uses the IRIX
Interactive Desktop file typing database to look up file typing rules and
apply them to the files listed, then prints the file type for each file
whose type was requested. The conversion rules are located in compiled
.otr files in /usr/lib/filetype. The older ftr(1) database format, .ctr
files are not supported anymore. The source .ftr files can be found in
the local, install, system, and default subdirectories under
/usr/lib/filetype.
If no file type can be determined for a particular file, the string
"Unknown" is returned. If a file type can be determined, filetype will
return a string representing the name of the file and its IRIX
Interactive Desktop type name.
The -v option should be used when detailed file typing information is
desired. This option prints a copy of the full file-type rule when a
file is successfully typed.
-d filetypeDataBasePath is an alternate path to the compiled file-typing
rules. The default path is /usr/lib/filetype/desktop.otr.
The -o and -a options execute the FTR "Open" and "Alt-Open" rules for the
selected files. The first filename on the command line is put into the
$LEADER variable, the rest into $REST. The rest of the IRIX Interactive
Desktop environment variables are set appropriately accordingly. (See
man ftr for more information on those variables.) Invoking fileopen is
equivalent to passing the -o switch to filetype. Invoking filealtopen is
equivalent to passing the -a switch to filetype.
The -v option should be used when detailed file typing information is
desired. This option prints a copy of the full file-type rule when a
file is successfully typed.
file(s) is one or more file names, separated by spaces.
A typical call from the command line and its resulting output might look
like the following:
$ filetype /etc/passwd /unix /dev/kmem
/etc/passwd AsciiTextFile
Page 1
FILETYPE(1) Printing Tools FILETYPE(1)
/unix GenericExecutable
/dev/kmem CharSpecial
The ordering of files on filetype's command line determines the ordering
of files and types reported.
/usr/lib/filetype/local/*.ftr
/usr/lib/filetype/install/*.ftr
/usr/lib/filetype/system/*.ftr
/usr/lib/filetype/default/*.ftr
/usr/lib/filetype/desktop.otr
IRIS Impressario Programming Guide , IRIX Interactive Desktop Integration
Guide , routeprint(1), ftr(1).
PPPPaaaaggggeeee 2222 [ Back ]
|