@@ -11,52 +11,53 @@ go install github.com/bool64/progress/cmd/catp@latest
1111or download from [ releases] ( https://github.com/bool64/progress/releases ) .
1212
1313```
14- wget https://github.com/bool64/progress/releases/latest/download/linux_amd64 .tar.gz && tar xf linux_amd64 .tar.gz && rm linux_amd64 .tar.gz
14+ wget https://github.com/bool64/progress/releases/latest/download/linux_amd64_static .tar.gz && tar xf linux_amd64_static .tar.gz && rm linux_amd64_static .tar.gz
1515./catp -version
1616```
1717
1818## Usage
1919
2020```
21- catp dev, go1.22rc1 CGO_ZSTD
22-
23- catp prints contents of files to STDOUT or dir/file output,
24- while printing current progress status to STDERR.
21+ catp prints contents of files to STDOUT or dir/file output,
22+ while printing current progress status to STDERR.
2523It can decompress data from .gz and .zst files.
2624Use dash (-) as PATH to read STDIN.
2725
2826Usage of catp:
2927catp [OPTIONS] PATH ...
3028 -dbg-cpu-prof string
31- write first 10 seconds of CPU profile to file
29+ write first 10 seconds of CPU profile to file
3230 -dbg-mem-prof string
33- write heap profile to file after 10 seconds
31+ write heap profile to file after 10 seconds
32+ -l count lines
3433 -no-progress
35- disable progress printing
34+ disable progress printing
3635 -out-dir string
37- output to directory instead of STDOUT
38- files will be written to out dir with original base names
39- disables output flag
36+ output to directory instead of STDOUT
37+ files will be written to out dir with original base names
38+ disables output flag
4039 -output string
41- output to file (can have .gz or .zst ext for compression) instead of STDOUT
40+ output to file (can have .gz or .zst ext for compression) instead of STDOUT
4241 -parallel int
43- number of parallel readers if multiple files are provided
44- lines from different files will go to output simultaneously (out of order of files, but in order of lines in each file)
45- use 0 for multi-threaded zst decoder (slightly faster at cost of more CPU) (default 1)
42+ number of parallel readers if multiple files are provided
43+ lines from different files will go to output simultaneously (out of order of files, but in order of lines in each file)
44+ use 0 for multi-threaded zst decoder (slightly faster at cost of more CPU) (default 1)
4645 -pass value
47- filter matching, may contain multiple AND patterns separated by ^,
48- if filter matches, line is passed to the output (unless filtered out by -skip)
49- each -pass value is added with OR logic,
50- for example, you can use "-pass bar^baz -pass foo" to only keep lines that have (bar AND baz) OR foo
46+ filter matching, may contain multiple AND patterns separated by ^,
47+ if filter matches, line is passed to the output (unless filtered out by -skip)
48+ each -pass value is added with OR logic,
49+ for example, you can use "-pass bar^baz -pass foo" to only keep lines that have (bar AND baz) OR foo
5150 -progress-json string
52- write current progress to a file
51+ write current progress to a file
52+ -rate-limit float
53+ output rate limit lines per second
5354 -skip value
54- filter matching, may contain multiple AND patterns separated by ^,
55- if filter matches, line is removed from the output (even if it passed -pass)
56- each -skip value is added with OR logic,
57- for example, you can use "-skip quux^baz -skip fooO" to skip lines that have (quux AND baz) OR fooO
55+ filter matching, may contain multiple AND patterns separated by ^,
56+ if filter matches, line is removed from the output (even if it passed -pass)
57+ each -skip value is added with OR logic,
58+ for example, you can use "-skip quux^baz -skip fooO" to skip lines that have (quux AND baz) OR fooO
5859 -version
59- print version and exit
60+ print version and exit
6061```
6162
6263## Examples
0 commit comments