TYPE command

Display a text file.

Synopsis

TYPE [file ...]

Display a text file.

In spite of cmd.exe’s behaviour, pBat 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 redirections.

Displaying a binary file directly to the terminal is unspecified behaviour. To view the content of such files, the use of DUMP should be preferred. If the output of TYPE is 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 command, Command list