From 4d0bd914e7c1ee65f4036e60149a7b891906a5d3 Mon Sep 17 00:00:00 2001 From: George Abbott Date: Tue, 31 Oct 2023 17:54:07 +0000 Subject: Commit all to date. --- fmt/deprefix | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 fmt/deprefix (limited to 'fmt/deprefix') diff --git a/fmt/deprefix b/fmt/deprefix new file mode 100755 index 0000000..da51657 --- /dev/null +++ b/fmt/deprefix @@ -0,0 +1,6 @@ +#!/bin/sh +# deprefix +# Remove the prefix from all files in the directory which have the prefix. +# deprefix "pref-" + +for i in "$1"*;do mv "$i" "${i#"$1"}";done -- cgit v1.2.1