Note: As of writing this I am now aware of this bash command
find . -name '*.lua' | xargs wc -l
that does this programs job, without having to download anything.
This terminal program will read the length of any lua files in the given directory (and child directories), echoing it back to you and summing it together in a nice total. Here are how many lines my Isondo project currently fullfills:
- Download the nim programming language
brew install nim
(macos brew command) - Download the source for this project and compile it with
nim c -r main.nim
(c == compile, -r == run, main.nim == source)
On macos, simply placing the executable in your target folder and double clicking to execute it will not work; you must:
- Place it in your target folder
- Locate your taget folder within it's parent directory
- Right click said containing folder and under Services, select "New terminal at folder"
- run
./main
, and it should work as intended! Behold, you source code has had it's length measured.
I have not tested this application on other operating systems, but there is no reason as to why it wouldn't work as intended.
This application will not read the length of a file if it is contained within a hidden directory (ei .git
files)