Skip to content

Instantly share code, notes, and snippets.

@7rin0
Created May 9, 2017 08:26
Show Gist options
  • Save 7rin0/3c17e760072ad92755789b03530860cb to your computer and use it in GitHub Desktop.
Save 7rin0/3c17e760072ad92755789b03530860cb to your computer and use it in GitHub Desktop.
Find and rename by pattern
#!/bin/bash
rename 's/word_a/word_b/' $(find * -name "*word_a*")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment