Skip to content

Instantly share code, notes, and snippets.

@ethagnawl
Created August 17, 2018 02:21
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 ethagnawl/89a517441f5bf49d83c5eb62a705cda8 to your computer and use it in GitHub Desktop.
Save ethagnawl/89a517441f5bf49d83c5eb62a705cda8 to your computer and use it in GitHub Desktop.
copy multiple files and rename using regex
for file in crushed-*; do cp "$file" "${file/crushed-/}"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment