Installation
Linux
Update system with apt
sudo apt install findutils -y
sudo apt upgrade findutils -yUsage
NOTE
Command below requires perl rename
# Batch Renaming
arguments=(
. # Search in current and it's subdirectories
-depth # Deepest directory first
-type d,f # Find directory and files
-name '*Foo*' # Find Foo in their names
-exec rename 's/Foo/Bar/g' # Run renaming pattern
{} # Complie find results
+ # Process find results
)
find "${arguments[@]}"