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