Rename a batch of files with a pattern

Bash

Strips a prefix from every file in a directory using shell parameter expansion, no rename utility required.

for f in IMG_*.jpg; do
  mv -- "$f" "${f#IMG_}"
done

More in Shell

Random picks