30 lines
878 B
JSON
30 lines
878 B
JSON
{
|
|
"name": "wc",
|
|
"section": 1,
|
|
"title": "word, line, and byte or character count",
|
|
"synopsis": ["wc [OPTION]... [OPERAND]..."],
|
|
"description": "Counts newlines, words, and bytes in each file. With no options, prints lines, words, and bytes. Line count is newline count (POSIX).",
|
|
"options": [
|
|
{ "flag": "-l, --lines", "meaning": "Print newline counts" },
|
|
{ "flag": "-w, --words", "meaning": "Print word counts" },
|
|
{ "flag": "-c, --bytes, -m", "meaning": "Print byte counts" },
|
|
{ "flag": "-", "meaning": "Operand reads stdin" }
|
|
],
|
|
"keywords": ["wc", "bare-os", "coreutils"],
|
|
"examples": [
|
|
{
|
|
"caption": "lines words bytes",
|
|
"code": "wc README.md"
|
|
},
|
|
{
|
|
"caption": "lines only",
|
|
"code": "wc -l *.txt"
|
|
},
|
|
{
|
|
"caption": "stdin",
|
|
"code": "cat f | wc -l"
|
|
}
|
|
],
|
|
"listCategory": "coreutils"
|
|
}
|