[go: up one dir, main page]

Menu

[267579]: / man / en_US / type.tea  Maximize  Restore  History

Download this file

62 lines (47 with data), 2.2 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#
# Dos9 Manual pages, The Dos9 project
# Copyright (C) 2012-2014 Romain Garbi (DarkBatcher)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
{{TYPE command}}
Display a text file.
{{Synopsis}}
${TYPE [file ...]}
Display a text file.
- {file ...} : A list of files to display. File names may be
{spec/regexp|regular expressions}. If a file name does not
refer to an existing file, the command stop and display an
error message. If the file name refers to a directory,
then, they will not be displayed.
@- If no file has been specifed, then the {TYPE} command does
not return an error (although {cmd.exe} does) and read its input
from the standard input.
In spite of {cmd.exe}'s behaviour, Dos9 only display the
file name prior to the file content if various files are to be displayed
(cmd.exe displays it also when only one file matches a regular expression).
File names are sent to standard error output, enabling them to be removed
easily from the output using {spec/red|redirections}.
Displaying a binary file directly to the terminal is unspecified behaviour.
To view the content of such files, the use of {dump|DUMP} should be
preferred. If the output of {TYPE} is {spec/red|redirected}, then it is
possible to print binary files safely.
On Unix-based platforms, it is not possible to display the content of
directories even though directories are actually files as {TYPE}
filters them.
{{Compatibility}}
Available since revision {0.4}.
Fully compatible with {cmd.exe}.
{{See also}}
{more|MORE command}, {commands|Command list}