Added all

This commit is contained in:
Guillem Hernandez Sola
2026-04-07 19:37:59 +02:00
commit da6dabcc62
42 changed files with 1959 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
#!/bin/bash
# Function to rename folders recursively
rename_folders() {
find "$1" -depth -type d | while read -r dir; do
# Remove parentheses from folder names
new_dir=$(echo "$dir" | sed 's/[()]//g')
# Rename folder if the new name is different
if [ "$dir" != "$new_dir" ]; then
mv "$dir" "$new_dir"
echo "Renamed: $dir -> $new_dir"
fi
done
}
# Starting directory (default is current directory if no argument is provided)
start_dir="${1:-.}"
echo "Starting from directory: $start_dir"
rename_folders "$start_dir"
echo "Done!"