Skip to content

Instantly share code, notes, and snippets.

@paulfarino
Created September 11, 2015 02:50
Show Gist options
  • Save paulfarino/3f5e74e3b587ea5e81f0 to your computer and use it in GitHub Desktop.
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.
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