Initial commit

This commit is contained in:
Ferdinando 2026-07-30 19:00:13 +02:00
commit c4a24c9fdf
142 changed files with 15491 additions and 0 deletions

16
scripts/rename.sh Normal file
View file

@ -0,0 +1,16 @@
#!/bin/bash
if [ $# -ne 2 ]; then
echo "Usage: $0 <old string> <new string>"
exit 1
fi
directory="."
oldstring="$1"
newstring="$2"
# Replace string in file and folder names
find "$directory" -depth -not -path '*/.git/*' -name "*$oldstring*" -execdir bash -c 'mv -- "$1" "${1//'"$oldstring"'/'"$newstring"'}"' _ {} \;
# Replace string in file contents
find "$directory" -not -path '*/.git/*' -type f -exec sed -i "s/$oldstring/$newstring/g" {} +