Search code examples
batch-fileinkscape

remove all paths with white fill


I'd like to remove all white paths in inkscape with the command line. As an example file, take http://paste.xinu.at/ZlfPz/, the two white paths that produce a 3d effect should be deleted.


Solution

  • No regex, but libxml2.

    xmlstarlet ed -L -d "//svg:path[contains(@style, 'stroke:#ffffff')]" *.svg