Created
September 11, 2015 02:50
-
-
Save paulfarino/3f5e74e3b587ea5e81f0 to your computer and use it in GitHub Desktop.
Create a folder called on your Desktop called 'assets'. Use an 'img' & 'ic' suffix in your Sketch export panel. After exporting run this shell script to place those images in their appropriate folders.
This file contains 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
cd Desktop/assets/ | |
mkdir images; mkdir icons | |
done | |
for file in $(find . -type f -iname '*-img*'); do | |
mv "$file" "images/${file/-images/}" | |
done | |
for file in $(find . -type f -iname '*-ic*'); do | |
mv "$file" "icons/${file/-icons/}" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment