mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-22 01:47:39 -07:00
13 lines
341 B
Bash
Executable file
13 lines
341 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# Change directories
|
|
find . -type d -name '*calckey*' | while read dir; do
|
|
newdir=$(echo "$dir" | perl -pe 's/calckey/firefish/g')
|
|
mv "$dir" "$newdir"
|
|
done
|
|
|
|
# Change files
|
|
find . -type f -name '*calckey*' | while read file; do
|
|
newfile=$(echo "$file" | perl -pe 's/calckey/firefish/g')
|
|
mv "$file" "$newfile"
|
|
done
|