Skip to content

Instantly share code, notes, and snippets.

@YourFriendCaspian
Created May 5, 2019 19:23
Show Gist options
  • Save YourFriendCaspian/2d190e310ef61240657b6be95bc2373a to your computer and use it in GitHub Desktop.
Save YourFriendCaspian/2d190e310ef61240657b6be95bc2373a to your computer and use it in GitHub Desktop.
Remove unwanted prefixes from filenames

Remove unwanted prefixes from filenames

Remote the prefix 'unwanted' from the beginning of each filename with .jpg suffix.

rename 's/^unwanted//' *.jpg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment