Change text on svg file from command line
-
- Posts: 1
- Joined: Sat Nov 09, 2013 10:12 am
Change text on svg file from command line
I want to edit existing text on several fields of text and then save as a PNG file. Can this be done from the command line? If so can someone provide a command line example?
Re: Change text on svg file from command line
svg is nothing more than a text file so you can use classical tools (such as sed) to change the text
http://www.grymoire.com/Unix/Sed.html#uh-1
sed s/day/night/ <my.svg >myedited.svg
inkscape --export-png=myedited.png myedited.svg
sed (and other unix tools) has been porte to window, you'll find it @ http://unxutils.sourceforge.net/
http://www.grymoire.com/Unix/Sed.html#uh-1
sed s/day/night/ <my.svg >myedited.svg
inkscape --export-png=myedited.png myedited.svg
sed (and other unix tools) has been porte to window, you'll find it @ http://unxutils.sourceforge.net/