1
I have a lot of files with mixed case URLs that I need do convert to lowercase, changing only the links inside the files and leaving the rest of the contents intact. I found out that this is possible by using regular expressions in Notepad++:
Find in Files
Search: (href=['"])(.+)(['"])
Replace to: \1\L\2\3
However, I need to do this using bash or vim. How could I do it? Also, how to apply it to multiple files in various folders?
Your assumption is correct, I need to change only the anchored URL and not the text. It works perfectly! Just one more question (I just saw the original question and forgot it), how could I use it to a bunch of files and files in subfolders? – Fabio Romeo – 2016-09-15T19:00:02.987
@FabioRomeo I have edited my answer to accomodate your additional request. – Chip Shadd – 2016-09-16T02:27:59.823