Command line batch file rename with regex

for file in A2B*.bif; do mv "$file" "${file//A2B/a02b}"; done

make lowercase:

for folder in *; do mv -nv "$folder" "`echo $folder | tr '[A-Z]' '[a-z]'`"; done

This article was updated on 2023-01-25

I'm nabeards.

I'm a full stack JavaScript developer.

I travel full time, a.k.a., Professional Wanderer, a.k.a., Digital Nomad.