summaryrefslogtreecommitdiff
path: root/bin/common/line
diff options
context:
space:
mode:
Diffstat (limited to 'bin/common/line')
-rwxr-xr-xbin/common/line5
1 files changed, 5 insertions, 0 deletions
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
+