Skip to content

Instantly share code, notes, and snippets.

@manuhabitela
Created December 6, 2016 09:13
Show Gist options
  • Save manuhabitela/5e53ca9ea86fab17e9e80dc6e5819d67 to your computer and use it in GitHub Desktop.
Save manuhabitela/5e53ca9ea86fab17e9e80dc6e5819d67 to your computer and use it in GitHub Desktop.
Batch svg manipulations with Inkscape
#!/bin/bash
# convert all .ai files found in current folder to svg
for file in $(ls *.ai)
do
svg_file=$(echo "$file" | sed "s/.ai/.svg/")
inkscape --without-gui --file=$file --export-plain-svg=$svg_file
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment