jcat, jtool cat
A platform agent tool used to send the contents of a file to stdout
or another file. You can call it as jcat
or jtool cat
.
Syntax
jcat.exe [-h|-?|-help] [-l <loglevel>] [-f <logfile>] [-o|-output <output-file>] [<file> ...]
Argument | Default | Description |
---|---|---|
-h, -?, -help | Show usage and exit. | |
-l <loglevel> | ${JCS_LOGLEVEL:-info} | Set the logging level; defaults to environment variable ${JCS_LOGLEVEL} or info when the environment variable is not set. |
-f <logfile> | ${JCS_LOGFILE:-stderr} | Log to file instead of stderr; defaults to environment variable ${JCS_LOGFILE} or stderr when the environment variable is not set. |
-o -output <output_file> | stdout | The output file to stream the contents to. |
-log | Write to logfile at loglevel INFO | |
<file>[ <file1>]* | The file(s) to read. |
Example
Concatenate the contents of two files ( /tmp/input1.txt
and /tmp/input2.txt
) into output.txt
$ jcat -o output.txt /tmp/input1.txt /tmp/input2.txt