Skip to content

Instantly share code, notes, and snippets.

@getdave
Last active December 20, 2015 12:39
Show Gist options
  • Save getdave/6132403 to your computer and use it in GitHub Desktop.
Save getdave/6132403 to your computer and use it in GitHub Desktop.
Rename a bunch of files and append a suffix before the file extension. Particularly useful for anyone using Grunticon's filename-based colour manipulation. https://github.com/filamentgroup/grunticon/issues/57
for f in *.svg; do mv $f `basename $f .svg`.colors-white.svg; done;
@getdave
Copy link
Author

getdave commented Aug 1, 2013

Also useful for Grunticon is this bit of regex which removes height (or width if you alter) attributes from SVG files.

height="[\d?.]+px"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment