From 9427e27e24a7135880ee2881c3c44988e174b41a Mon Sep 17 00:00:00 2001 From: Zephyron Date: Tue, 31 Dec 2024 16:19:25 +1000 Subject: chore: update project branding to citron --- rename.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 rename.sh (limited to 'rename.sh') diff --git a/rename.sh b/rename.sh new file mode 100755 index 000000000..84906842d --- /dev/null +++ b/rename.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +# Define old and new strings +old="yuzu" +new="citron" + +# Find and rename directories first +find . -depth -type d -name "*${old}*" | while read -r dir; do + newdir=$(echo "$dir" | sed "s/${old}/${new}/g") + mv "$dir" "$newdir" +done + +# Find and rename files +find . -depth -type f -name "*${old}*" | while read -r file; do + newfile=$(echo "$file" | sed "s/${old}/${new}/g") + mv "$file" "$newfile" +done -- cgit v1.2.3