Skip to content

This terminal program will read the length of any lua files within a directory

Notifications You must be signed in to change notification settings

Dot32IsCool/count-lines

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 

Repository files navigation

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.

Count lines from .lua files

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:
Screen Shot 2021-06-21 at 10 54 10 pm

Building

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

Usage

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)

About

This terminal program will read the length of any lua files within a directory

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages