Skip to content

Instantly share code, notes, and snippets.

@imedadel
Created May 27, 2019 15:30
Show Gist options
  • Save imedadel/9abb6ed6c467bd2e8ce9d41d09f88e7a to your computer and use it in GitHub Desktop.
Save imedadel/9abb6ed6c467bd2e8ce9d41d09f88e7a to your computer and use it in GitHub Desktop.

Quickly rename anything using Git Bash through this command find . -name "*.gappedPeak" -exec sh -c 'mv "$1" "${1%.gappedPeak}.bed"' _ {} \;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment