Previous Topic: ASSERT Command--Compare Mathematical Expressions (Funclet)Next Topic: cd, chdir Commands--Change Directory (Cmdlet, Funclet)


cat, type Commands--Display Text Files (Cmdlets)

These commands (cmdlets) write the content of one or more text files to the standard output stream. Use with set alternate to concatenate multiple files.

The commands have the following syntax:

{cat|type} fileList
fileList

Defines a comma-separated list of absolute or relative file names display. Unquoted argument tokens are automatically stringified. Prevent automatic quoting for expressions by placing expression code in parentheses.

Examples

Display Windows boot options:

cat c:\boot.ini

Concatenate two files:

set alternate to output.txt
cat input1.txt, input2.txt
set alternate to

See also:

memoRead--Read a Text File Into a String (Function)