Skip to content

Instantly share code, notes, and snippets.

@mckelvey
Created July 7, 2015 20:29
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 mckelvey/657a5c86b4429ac951d8 to your computer and use it in GitHub Desktop.
Save mckelvey/657a5c86b4429ac951d8 to your computer and use it in GitHub Desktop.
How to collect all Material Design SVGs into a single folder...
# Inside the repo root
$ mkdir svg-collected
$ find . -type f -iname '*_48px.svg' -exec cp {} ~/Desktop/material-design-icons-2.0/svg-collected/ \;
# Rename the Filenames
$ for i in *_48px.svg; do mv -- "$i" "${i/_48px/}"; done
$ for i in ic_*; do mv -- "$i" "${i/ic_/}"; done
$ for i in *_*; do mv -- "$i" "${i/_/ }"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment