From cb78290f31886fb1f9a5e7c2a764dda55a459e50 Mon Sep 17 00:00:00 2001 From: Suleyman Farajli Date: Sun, 26 Oct 2025 22:23:31 +0400 Subject: chore: split script installation into CLI and GUI sections --- scripts/nospac | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100755 scripts/nospac (limited to 'scripts/nospac') diff --git a/scripts/nospac b/scripts/nospac deleted file mode 100755 index 6ba466a..0000000 --- a/scripts/nospac +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh - -help() { -cat << EOF -${0}: Replace all the spaces in file and directory -names with "_" in in the current directory. -options: - -h Print this message and exit -EOF -} - -if [ ${#} -gt 0 ]; then - [ ${#} = 1 ] && [ "${1}" = "-h" ] && help && exit 0 - printf "%s: Invalid usage\nTry '%s -h' for help.\n" "${0}" "${0}" - exit 1 -fi - -for file in ./*; do - newfile=$(echo "${file}" | tr ' ' '_') - [ "${newfile}" != "${file}" ] && mv -v "${file}" "${newfile}" -done - -exit 0 -- cgit v1.2.3