Telegram Group & Telegram Channel
Say you wanted to invert hex colors so the stroke color is inverted of the fill color. Ultimately I decided against this and just going to use black for stroke. To do so using sed transliterate sed -e 'y/0123456789abcdef/fedcba9876543210/' you can't search for a pattern. So perl works in this case.

for f in *.svg ; do perl -p -i -e 's{(stroke="#[\w{6}])}{ ($new=$1) =~ tr/0123456789ABCDE/EDCBA9876543210/; $new }eg' "$f" ; done



tg-me.com/geektips/844
Create:
Last Update:

Say you wanted to invert hex colors so the stroke color is inverted of the fill color. Ultimately I decided against this and just going to use black for stroke. To do so using sed transliterate sed -e 'y/0123456789abcdef/fedcba9876543210/' you can't search for a pattern. So perl works in this case.

for f in *.svg ; do perl -p -i -e 's{(stroke="#[\w{6}])}{ ($new=$1) =~ tr/0123456789ABCDE/EDCBA9876543210/; $new }eg' "$f" ; done

BY GeekTips




Share with your friend now:
tg-me.com/geektips/844

View MORE
Open in Telegram


GeekTips Telegram | DID YOU KNOW?

Date: |

The Singapore stock market has alternated between positive and negative finishes through the last five trading days since the end of the two-day winning streak in which it had added more than a dozen points or 0.4 percent. The Straits Times Index now sits just above the 3,060-point plateau and it's likely to see a narrow trading range on Monday.

GeekTips from sg


Telegram GeekTips
FROM USA