Skip to content

Latest commit

 

History

History
98 lines (64 loc) · 1.92 KB

README.md

File metadata and controls

98 lines (64 loc) · 1.92 KB

Tests

🧮 📄 cx

Count X

  • count words
  • count lines
  • count chars
  • count bytes
  • count x

Examples

Count words, lines, chars, bytes in file

screenshot

Count words in pipe

screenshot

Usage

Short Usage

Usage: cx [OPTIONS] [PATH] [COMMAND]

Commands:
  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

Long Usage

Usage: cx [OPTIONS] [PATH] [COMMAND]

Commands:
  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 a summary with '-h')

  -V, --version
          Print version

Installation

Windows

via Cargo or get the binary