-l, --lines
Print the newline counts.
An option of wcx.
Usage
wcx -l [FILE]...
wcx --lines [FILE]...Details
| Short | Long | Value | Default | Meaning |
|---|---|---|---|---|
-l | --lines | none | print the newline counts |
Examples
Count only the lines
wcx -l access.logPrint lines and words together (always in that order, whatever the flag order)
wcx -wl essay.txtCount the lines of several files, with a total
wcx -l *.goCount several files without the total line, or force it for a single file
wcx -l --total=never *.go && wcx -l --total=always main.goCount the entries a command produces
lsx | wcx -lRead the list of files to count from a NUL-separated file
wcx -l --files0-from=sources.lstPrint only the grand total for a list of files found elsewhere
find . -name '*.go' -print0 | wcx -l --files0-from=- --total=onlyFail a script when a file is missing (exit status 1)
wcx -l missing.txt || echox "exit status $?"Count matching files in the portable gnux shell
gnux shell -c 'lsx -1 *.md | wcx -l'Help in the terminal
gnux help wcx --lines