wc
, and, Common
Syntax
wc [options] [file...]
Parameters
| Parameters | Description | Examples | Level |
|---|---|---|---|
-l |
|
Common | |
-w |
|
Common | |
-c |
|
Common | |
-m |
() | |
Common |
-L |
|
Common |
Examples
wc -l file.txt
JS
find src/ -name '*.js' | wc -l
Git
git log --oneline | wc -l
404
cat access.log | grep '404' | wc -l
Python
find . -name '*.py' -exec cat {} + | wc -lTips
- wc -l Common,
- wc -l command
- : cloc, tokei
- wc Parameters, and