Skip to content

Instantly share code, notes, and snippets.

@paulcpederson
Created January 26, 2018 18:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paulcpederson/b018b339f4aa0c52210319bd02b75d15 to your computer and use it in GitHub Desktop.
Save paulcpederson/b018b339f4aa0c52210319bd02b75d15 to your computer and use it in GitHub Desktop.
Rename files in folder to last 6 digits of current filename
\ls | while IFS= read f; do mv -vn "$f" "${f: -6}"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment