Created
July 7, 2015 20:29
-
-
Save mckelvey/657a5c86b4429ac951d8 to your computer and use it in GitHub Desktop.
How to collect all Material Design SVGs into a single folder...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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