Mass Move Files An examples of mass renaming files (removing extensions) in bash. for file in `find . -name '.bak'` do mv "$file" "${file%%.bak}" done