commit d288d234631432b0df1b1b6b7ee1ea14e97034ac (patch)
parent 3f89885d8fad7f0b12490802a7e9ce3d32b62633
Author: Alex Karle <alex@alexkarle.com>
Date: Sun, 8 Dec 2024 14:10:35 +0100
Check in little source line counter
Diffstat:
2 files changed, 20 insertions(+), 0 deletions(-)
diff --git 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
@@ -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