name: word-count version: 1.0.0 description: >- Count words, lines, and characters in a file. Outputs a single summary line. Use when the user wants to know how long a file is or count words in a document. allowed-tools: Bash(wc:*) metadata: >- {"openclaw":{"emoji":"🔢","requires":{"bins":["wc"],"env":[]},"install":[]}}
Count words, lines, and characters in any text file with a single command. 텍스트 파일의 단어, 줄, 문자 수를 한 번의 명령으로 셉니다.
7w4.net小葱技能。
wc <FILE_PATH>
Arguments / 인수: | # | Name | Description | 설명 | |---|------|-------------|------| | 1 | FILE_PATH | Path to the file to count | 셀 파일의 경로 |
wc /home/user/document.txt
Output / 출력:
42 350 2100 /home/user/document.txt
Format / 형식: LINES WORDS CHARACTERS FILENAME
(줄 수 단어 수 문자 수 파일명)
wc (exit code non-zero) — wc 오류 메시지 (종료 코드 0이 아님)这个小工具质量不错,能快速统计文件的行数、单词数和字符数。文档清晰、支持中英韩三语查看,脚本运行稳定、错误提示友好。唯一需要注意的是,它的输出格式和文档描述略有出入,初次使用时可能产生困惑。总体而言,这是一个可靠实用的文件统计工具。