Skip to content

Instantly share code, notes, and snippets.

@choonkeat
Created January 20, 2010 02:54
Show Gist options
  • Save choonkeat/281547 to your computer and use it in GitHub Desktop.
Save choonkeat/281547 to your computer and use it in GitHub Desktop.
from=$1
to=$2
find . -iname "$from*" | sed "s/$from/\{$from,$to\}/g" | sed 's/^/mv /g' | bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment