From 13139f06ec935b881dca5c97f26f93223ead53d6 Mon Sep 17 00:00:00 2001 From: Philip Wittamore Date: Thu, 8 May 2025 09:21:00 +0200 Subject: update --- replace-spaces-with-minus | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 replace-spaces-with-minus (limited to 'replace-spaces-with-minus') diff --git a/replace-spaces-with-minus b/replace-spaces-with-minus new file mode 100755 index 0000000..13a74e6 --- /dev/null +++ b/replace-spaces-with-minus @@ -0,0 +1,6 @@ +#!/bin/sh + +# replace spaces in filenames with - +for f in *\ *; do + mv "$f" "${f// /-}"; +done -- cgit v1.2.3