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' *

Share on: TwitterFacebookEmail


Related Posts


Published

Category

Notes

Tags

Contact