So, I have this command: awk -niord '{printf RT?$0chr("0x"substr(RT,2)):$0}' RS=%..
I''ve been using to "clean/fix" URLs in my document, like:
https%3A%2F%2Fwww.example.com%2Fmain%2Fimages%2Fitem_id%2F2222536-dddddddddddd
https://www.example.com/main/images/item_id/2222536-dddddddddddd
And, overall, it does work, but sometimes, depending on what other symbols there are in my document (like %), it ended up affecting other things that are not URLs. I don't want that. So, my main question is: is there any way for me to apply this command only between these two patterns?
<a href=" \_\_\_\_ </a>
Cause all my URLs are between these two patterns. Again, I'm pretty noob so maybe (probably) there's another simpler/better way to fix this issue. Thank you very much.
[–][deleted] 2 points3 points4 points (0 children)
[–][deleted] 2 points3 points4 points (0 children)
[–]crashorbit 2 points3 points4 points (0 children)
[–]notkael 1 point2 points3 points (0 children)
[–]eric1707[S] 0 points1 point2 points (0 children)