Skip to content

weakish/nbcount

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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).

Install

Dependencies

  • sh
  • grep
  • wc

With make

; git clone https://github.com/weakish/nbcount
; cd nbcount
; make

Files 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.

With basher

; basher install weakish/nbcount

Manually

Copy bin/nbcount to $PATH.

Usage

cat source.code | nbcount

License

0BSD

About

nbcount is a naive, bad counter for source code.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors