Rename

Rename selected files using a regular expression

$ rename 's/\.bak$/.txt/' *.bak