Skip to content

Instantly share code, notes, and snippets.

@sodonnell
Created October 23, 2018 15:00
Show Gist options
  • Select an option

  • Save sodonnell/11e2ea3357b8ada3023734f33f240262 to your computer and use it in GitHub Desktop.

Select an option

Save sodonnell/11e2ea3357b8ada3023734f33f240262 to your computer and use it in GitHub Desktop.
Batch-renaming Files in Bash
#!/usr/bin/env bash
for i in rc_*; do mv $i ${i/rc_/rc2_}; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment