Skip to content

Instantly share code, notes, and snippets.

@bobylito
Created December 31, 2012 07:36
Show Gist options
  • Save bobylito/4418138 to your computer and use it in GitHub Desktop.
Save bobylito/4418138 to your computer and use it in GitHub Desktop.
Rename camera sdcard folders to a proper pattern
ls | grep ..._.... | while read f; do mv $f `echo $f | sed "s/\(..._\(..\)\(..\)\)/2012-\3-\2/g" `; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment