summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdoardo La Greca2025-05-05 20:39:54 +0200
committerEdoardo La Greca2025-05-05 20:39:54 +0200
commitade3bbcc86807b2246f68e7cd9866fbf08c2d052 (patch)
tree59f9ca619d9f79142bd6bf691f01c20b3506250d
parentaa727fcfbd54add0c2b487d5418adeecc4f834c6 (diff)
add folder script
-rwxr-xr-xsh/folder.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/sh/folder.sh b/sh/folder.sh
new file mode 100755
index 0000000..dc1c097
--- /dev/null
+++ b/sh/folder.sh
@@ -0,0 +1,6 @@
+#! /bin/sh
+
+# Fold and remove trailing white-space from files.
+
+fold -s "$@" | sed 's/[[:space:]]$//'
+