Posts Tagged ‘bash regular expressions’

Rename files in Bash with Regular expresions

Sometimes It’s necessary to rename files following some patterns. Do this task manual is a long task, if you thousand of files. For this reason, I use rename command: Debug and preview: $ rename’REGULAR EXPRESSION’ files -n Execute: $ rename’REGULAR EXPRESSION’ files Some of the most common expressions I use are: Convert filename to lowercase:…

Read More