Install
openclaw skills install wc-toolCount lines, words, characters, and bytes in one or more files with per-file and total summary. Use for document statistics, code analysis, and data volume estimation.
openclaw skills install wc-toolMulti-file word count utility. Count lines, words, characters (multibyte-aware), and bytes across one or more files with per-file breakdown and grand total. Supports standard input for pipeline use.
# Count everything for a file
wc-tool document.txt
# Count lines only
wc-tool -l script.py
# Count from stdin
cat file.txt | wc-tool -w
wc-tool [OPTIONS] [FILE...]
cat INPUT | wc-tool [OPTIONS]
Options:
-l, --lines Count lines only
-w, --words Count words only
-c, --bytes Count bytes only
-m, --chars Count characters (multibyte-aware)
-L, --max-line Print length of longest line
--files0-from FILE Read input file list from FILE (null-separated)
--total Show grand total (default with multiple files)
--json Output as structured JSON
# Full count (lines, words, chars, bytes)
wc-tool README.md
# Lines only (code file size metric)
wc-tool -l src/main.py src/utils.py
# Characters in a file (UTF-8 aware)
wc-tool -m document.txt
# Longest line length
wc-tool -L src/main.py
# Pipe from another command
ls /usr/bin | wc-tool -l
# JSON output for automation
wc-tool -l -w *.py --json
# Multiple files with total
wc-tool *.txt