summaryrefslogtreecommitdiff
path: root/fmt/desuffix
diff options
context:
space:
mode:
Diffstat (limited to 'fmt/desuffix')
-rwxr-xr-xfmt/desuffix5
1 files changed, 5 insertions, 0 deletions
diff --git a/fmt/desuffix b/fmt/desuffix
new file mode 100755
index 0000000..fc0a511
--- /dev/null
+++ b/fmt/desuffix
@@ -0,0 +1,5 @@
+#!/bin/sh
+# desuffix
+# Remove all suffixes.
+
+rename --no-overwrite -- "$1" "" *