45
46
47 This example illustrates the use of file on all the files in a specific
48 user's directory:
49
50
51 example% pwd
52 /usr/blort/misc
53
54
55
56 example% /usr/ucb/file *
57
58 code: mc68020 demand paged executable
59 code.c: c program text
60 counts: ascii text
61 doc: roff,nroff, or eqn input text
62 empty.file: empty
63 libz: archive random library
64 memos: directory
65 project: symboliclink to /usr/project
66 script: executable shell script
67 titles: ascii text
68 s5.stuff: cpio archive
69
70
71 example%
72
73
74
75 ENVIRONMENT VARIABLES
76 The environment variables LC_CTYPE, LANG, and LC_default control the
77 character classification throughout file. On entry to file, these
78 environment variables are checked in the following order: LC_CTYPE,
79 LANG, and LC_default. When a valid value is found, remaining
80 environment variables for character classification are ignored. For
81 example, a new setting for LANG does not override the current valid
82 character classification rules of LC_CTYPE. When none of the values is
83 valid, the shell character classification defaults to the POSIX.1 "C"
84 locale.
85
|
45
46
47 This example illustrates the use of file on all the files in a specific
48 user's directory:
49
50
51 example% pwd
52 /usr/blort/misc
53
54
55
56 example% /usr/ucb/file *
57
58 code: mc68020 demand paged executable
59 code.c: c program text
60 counts: ascii text
61 doc: roff,nroff, or eqn input text
62 empty.file: empty
63 libz: archive random library
64 memos: directory
65 project: symbolic link to /usr/project
66 script: executable shell script
67 titles: ascii text
68 s5.stuff: cpio archive
69
70
71 example%
72
73
74
75 ENVIRONMENT VARIABLES
76 The environment variables LC_CTYPE, LANG, and LC_default control the
77 character classification throughout file. On entry to file, these
78 environment variables are checked in the following order: LC_CTYPE,
79 LANG, and LC_default. When a valid value is found, remaining
80 environment variables for character classification are ignored. For
81 example, a new setting for LANG does not override the current valid
82 character classification rules of LC_CTYPE. When none of the values is
83 valid, the shell character classification defaults to the POSIX.1 "C"
84 locale.
85
|