Hi there!
I am working on a conversion script but got stuck with 1 thing that I cannot get past...
I want to change a certain word in a file with a hex-value, with the use of gsar.exe (command line!), but ignore it if the word is somewhere between quotes
Original text:
9023 AAAA "this is a AAAA" "AAAA" "*:;AAAA'" Aaaa " Because AAAA" " aaaa " AaAa
text after gsar is done:
9023 XXXX "this is a AAAA" "AAAA" "*:;AAAA'" XXXX " Because AAAA" " aaaa " XXXX
(where XXXX represents the hex value a5)
Please note:
-it should be case insensitive
-it should ignore everything between quotes
-I want to use gsar.exe but sed.exe (Windows) or another command line tool would be good as well
-The opening quotes are the same as the closing quotes (0x22)
I have been working on this for a whole day now and I am not even close
I know this be done and probably with only 1 line. This is what makes it extra frustrating. It doesn't have to be gsar. Sed.exe or another command line tool would be good as well!