1fileutil::magic::filetype(n)    file utilities    fileutil::magic::filetype(n)
2
3
4
5______________________________________________________________________________
6

NAME

8       fileutil::magic::filetype  - Procedures implementing file-type recogni‐
9       tion
10

SYNOPSIS

12       package require Tcl  8.4
13
14       package require fileutil::magic::filetype  ?1.0.2?
15
16       ::fileutil::magic::file filename
17
18_________________________________________________________________
19

DESCRIPTION

21       This package provides a command for the recognition of  file  types  in
22       pure Tcl.
23
24       The  core  part  of the recognizer was generated from a "magic(5)" file
25       containing the checks to perform to  recognize  files,  and  associated
26       file-types.
27
28       Beware!  This  recognizer is large, about 276 Kilobyte of generated Tcl
29       code.
30
31       ::fileutil::magic::file filename
32              This command is similar to the command fileutil::fileType.
33
34              The output of the command for the specified  file  is  a  string
35              describing the type of the file.
36
37              This  list  will  be empty if the type of the file is not recog‐
38              nized.
39

REFERENCES

41       [1]    File(1) sources [ftp://ftp.astron.com/pub/file/] This site  con‐
42              tains  the  current  sources for the file command, including the
43              magic definitions used by it. The latter were used by us to gen‐
44              erate this recognizer.
45

SEE ALSO

47       file(1), fileutil, magic(5)
48

KEYWORDS

50       file recognition, file type, file utilities, type
51
52
53
54fumagic                              1.0.2        fileutil::magic::filetype(n)
Impressum