Count X
- count words
- count lines
- count chars
- count bytes
- count x
cat example.txt
# lorem ipsum wasd
cx example.txt
# 1 3 14 18 ./example.txt
cx example.txt --lines
# 1
cx example.txt --words
# 3
cx example.txt --chars
# 14
cx example.txt --bytes
# 18
echo 'Something interesting' | cx
# 1 2 20 23
Usage: cx [OPTIONS] [PATH] [COMMAND]
Commands:
examples, --examples Show examples
log, -L, --log Show content of the log file
help Print this message or the help of the given subcommand(s)
Arguments:
[PATH] The filepath to work with
Options:
-b, --bytes Count all bytes [aliases: byte]
-c, --chars Count all chars [aliases: char]
-l, --lines Count all lines [aliases: line]
-S, --show-errors Show errors (ignores errors by default) [aliases: show-error]
-w, --words Count all words [aliases: word]
-h, --help Print help (see more with '--help')
-V, --version Print version
Usage: cx [OPTIONS] [PATH] [COMMAND]
Commands:
examples, --examples Show examples
log, -L, --log Show content of the log file
help Print this message or the help of the given subcommand(s)
Arguments:
[PATH]
The filepath to work with
Reads stdin if left empty
Options:
-b, --bytes
Count all bytes
[aliases: byte]
-c, --chars
Count all chars
[aliases: char]
-l, --lines
Count all lines
[aliases: line]
-S, --show-errors
Show errors (ignores errors by default)
[aliases: show-error]
-w, --words
Count all words
[aliases: word]
-h, --help
Print help (see a summary with '-h')
-V, --version
Print version