Rename multiple files

 

Example : find "*_conflict-*" replace by "-"

for file in *_conflict-*; do echo mv \\"$file\\" \\"${file//_conflict-/-}\\"; done | /bin/bash

Another example with rename

rename 's/_conflict-/-/g' *

Comments

Popular posts from this blog

Install Gitea on NAS Netgear

Send mail with from on Linux