bash change file name pattern code example
Example 1: bash rename multiple files pattern
rename 's/^/MyVacation2011_/g' *.jpg
Example 2: bash rename multiple files pattern
for f in *.jpg; do mv "$f" "$(echo "$f" | sed s/IMG/VACATION/)"; done
rename 's/^/MyVacation2011_/g' *.jpg
for f in *.jpg; do mv "$f" "$(echo "$f" | sed s/IMG/VACATION/)"; done