Se vuoi rinominare i file in blocco, ho creato un piccolo script per questo.
# Rename Bullk files.
# Renames all the files in PWD with the given extension.
#
# @param extension | jpg
# @param new_name | name
# Usage: rename jpg new_name
function rename() {
echo "———————————————— STARTED ————————————————"
# Counter.
COUNTER=1
# For do loop.
for file in *."$1"; do
mv "$file" "$2-$COUNTER.$1"
COUNTER=$[$COUNTER +1]
done
echo "———————————————— ✔✔✔ RENAMED Every $1 file in the PWD! ✔✔✔︎ ————————————————"
}
Inseriscilo in .bashrc
o .zshrc
ed esegui Usage: rename jpg new_name
questo rinominerà tutti i file jpg nel PWD in new_name-1.jpg, new_name-2.jpg, ecc.
Cheers!