A clone of Linux's wc utility for word processing. It calculates a file's word, line, character or byte count.
- Download the binary from CI artifacts.
- Add its path in Environment Variables.
- Then you can execute the following command.
wc <file-path> -l
This will output the number of lines in the specified file.
Flag | Description |
---|---|
l | Count lines |
w | Count words |
m | Count characters |
c | Count bytes |
You can also pass multiple flags. If no flag is passed then output is similar to wc <file-path> -l -w -m
.