Hacker News new | ask | show | jobs
by jozvolskyef 1909 days ago
To be fair Kubernetes itself probably has 17k lines of bash, and it is a good thing. It is the first go-to project that I use as a reference for bash scripting best practices.

edit: wc reports 47023 lines in *.sh[1], out of which 23836 are unique[2].

[1]: find . -name '*.sh' | xargs cat | wc -l

[2]: find . -name '*.sh' | xargs cat | sort | uniq | wc -l

1 comments

You might enjoy having a look at https://github.com/AlDanial/cloc

It can distinguish between actual lines of code, comments and empty lines for a lot of different languages.

You might want to look at https://github.com/boyter/scc

It's the same as cloc, but ludicrously fast.

Thanks for sharing - I've been using cloc whenever needed but scc looks like a really sweet alternative/improvement!