/ Published in: Bash
Search all SVG files for a certain line, then replace them. Make a backup first, or at least add a tag for sed to make the backups for you.
Expand |
Embed | Plain Text
for file in *.svg; do sed -i 's/<rect x\=\"[0-9]*\" y\=\"[0-9]*\" width\=\"[0-9]*px\" height\=\"[0-9]*px\" fill\=\"\#FFFFFF\" \/>/<rect x\=\"0\" y\=\"0\" width\=\"100\%\" height\=\"100\%\" fill\=\"\#FFFFFF\" \/>/' $file; done
You need to login to post a comment.
