Skip to content

Instantly share code, notes, and snippets.

@getdave
Last active December 20, 2015 12:39
Show Gist options
  • Select an option

  • Save getdave/6132403 to your computer and use it in GitHub Desktop.

Select an option

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

getdave commented Aug 1, 2013

Copy link
Copy Markdown
Author

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