Skip to content

Instantly share code, notes, and snippets.

@scaint
Created November 13, 2015 13:25
Show Gist options
  • Save scaint/70cc607c39e045c1655b to your computer and use it in GitHub Desktop.
Save scaint/70cc607c39e045c1655b to your computer and use it in GitHub Desktop.
# mv prefix_filename.txt filename.txt
find -type f | sed 's/prefix_\(.\+\)/mv \0 \1/' | sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment