Created
November 5, 2014 15:05
-
-
Save dmy3k/49c4b72413bfea6ce137 to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
FILES=$(find $1 -maxdepth 1 -name '*.eps') | |
for file in $FILES | |
do | |
extension="${file##*.}" | |
filename="${file%.*}" | |
#echo $file | |
#echo $filename | |
epstopdf "$file" | |
pdf2svg "$filename.pdf" "$filename.svg" | |
done | |
find $1 -maxdepth 1 -name '*.pdf' -delete |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
use
find . -maxdepth 1 -name '*.eps' -delete
to delete source file (be careful with that)