From 1c9e478e8528a80faa1e7e88ef8f21f9dfb20b14 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Sat, 8 Nov 2025 15:36:51 +0100 Subject: checkpoint --- bin/common/length | 4 ++++ bin/common/line | 5 +++++ 2 files changed, 9 insertions(+) create mode 100755 bin/common/length create mode 100755 bin/common/line (limited to 'bin/common') diff --git a/bin/common/length b/bin/common/length new file mode 100755 index 0000000..8527dfa --- /dev/null +++ b/bin/common/length @@ -0,0 +1,4 @@ +#!/bin/sh +set -eu +printf '%s' "$1" | wc -c + diff --git a/bin/common/line b/bin/common/line new file mode 100755 index 0000000..9a2556e --- /dev/null +++ b/bin/common/line @@ -0,0 +1,5 @@ +#!/bin/sh +set -eu + +head -n "$1" | tail -n 1 + -- cgit v1.2.3-70-g09d2