Skip to content

Instantly share code, notes, and snippets.

@Hubbitus
Created January 10, 2017 14:12
Show Gist options
  • Save Hubbitus/f2bc0ac62020363420ddd56508e13887 to your computer and use it in GitHub Desktop.
Save Hubbitus/f2bc0ac62020363420ddd56508e13887 to your computer and use it in GitHub Desktop.
find -type f -exec sh -c 'F=$( basename "{}" ); mv $F $(echo $F | sed -r "s/^([[:digit:]]+).+?/\1/")' \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment