@platforma-open/milaboratories.software-small-binaries.line-counter
v1.1.1
Published
Small cross-platform binaries, like 'sleep' or 'hello-world', suitable for test needs
Readme
How to use
Usage:
line-counter --input <file> --output <file>
-input string
input file (optionally .gz/.bz2/.zst)
-output string
output file for the line countCounts the number of lines ('\n' bytes) in --input and writes the exact
count as a base-10 integer (no trailing newline) into --output. Compression
is inferred (case-insensitively) from the input file extension: .gz, .bz2,
.zst, otherwise the file is read as-is. The file is streamed, so memory usage
is O(1) regardless of file size.
