1 2 3 4 5 6 7 8 9
#!/bin/sh file=$(readlink -f "$1") dir=$(dirname "$file") base="${file%.*}" cd "$dir" || exit inkscape "$file" -D --export-type=pdf --export-filename="$base.pdf"