Text Counter

Count characters, words, and lines in text input.

Commands

devv count "hello world"
echo "some text" | devv count
cat document.txt | devv count

Examples

# Count inline text
devv count "hello world"

# Count a file
cat README.md | devv count

# Count piped output
devv lorem --paragraphs 3 | devv count

Output

$ devv count "hello world"
Characters: 11
Words: 2
Lines: 1

Pipeline Usage

Pipeline ID Description
text-counter Count chars/words/lines
devv pipe exec "text-counter" "some input text"

Behavior

Passthrough — the original input is forwarded to the next step. The count statistics are displayed but don't replace the data flowing through.

Was this page helpful?