From d288d234631432b0df1b1b6b7ee1ea14e97034ac Mon Sep 17 00:00:00 2001 From: Alex Karle Date: Sun, 8 Dec 2024 14:10:35 +0100 Subject: [PATCH] Check in little source line counter --- README.md | 13 +++++++++++++ sloc | 7 +++++++ 2 files changed, 20 insertions(+) create mode 100755 sloc diff --git a/README.md b/README.md index 122938a..b25bf4d 100644 --- a/README.md +++ b/README.md @@ -8,3 +8,16 @@ practice! * [2022](./2022): Attempting CHICKEN Scheme * [2023](./2023): Busy year, only a couple days in Go/Perl * [2024](./2024): Even busier year, back to Python + +## Language Breakdown + +Including comments, roughly the following LOC: + +``` +py 1689 +scm 1226 +c 295 +go 118 +``` + +See [./sloc](./sloc) for methodology. diff --git a/sloc b/sloc new file mode 100755 index 0000000..233162b --- /dev/null +++ b/sloc @@ -0,0 +1,7 @@ +#!/bin/sh +find 20* -type f -name '*.*' | \ + egrep '(go|py|scm|c)$' | \ + xargs wc -l | \ + grep -v total | \ + awk '{ split($2, a, "."); s[a[2]] += $1 } END { for (k in s) { printf("%s\t%d\n", k, s[k]) }}' |\ + sort -n -k 2 -r -- libgit2 1.8.1