jcat, jtool cat

jcat is a command-line tool used to send the contents of a file to stdout or another file. You can call it as jcat or jtool cat.

Note: For installation instructions, see jtool.

Syntax

Copy
jcat.exe  [-h|-?|-help] [-l <loglevel>] [-f <logfile>] [-o|-output <output-file>] [<file> ...]

Argument Default Description
-h, -?, -help

Shows help.
-l <loglevel> ${JCS_LOGLEVEL:-info} Sets the logging level. Defaults to the environment variable ${JCS_LOGLEVEL}, or info if the environment variable is not set.
-f <logfile> ${JCS_LOGFILE:-stderr} Log to file instead of stderr. Defaults to the environment variable ${JCS_LOGFILE}, or stderr if the environment variable is not set.
-o -output <output_file> stdout The output file to stream the contents to.
-log

Writes to the log file at log level INFO.
<file>[ <file1>]*

The file(s) to read.

Example

This example concatenates the contents of two files (/tmp/input1.txt and /tmp/input2.txt) into output.txt.

Copy
$ jcat -o output.txt /tmp/input1.txt /tmp/input2.txt