nbcount is a naive, bad counter for source code.
Currently only supports code with single line comment starting with one of:
#"%--//REM
No support for multi-line comments.
No distinguish comment marks between languages,
for example, REM = 2 in C will be considered as comment line (not count).
- sh
- grep
- wc
; git clone https://github.com/weakish/nbcount
; cd nbcount
; makeFiles will be installed to /usr/local/bin.
If you want to install other place, edit config.mk before running make.
Makefile is compatible with both GNU make and BSD make.
; basher install weakish/nbcountCopy bin/nbcount to $PATH.
cat source.code | nbcount
0BSD