I have a block of HTML that I need to pull all the IDs and CLASSes out of. Im wanting to make a list of these so that I can start trimming our larger then necessary CSS doc (173k).
Ill isolate the HTML code block and put it in its own file, but having to go through and document all the IDs and CLASSes used is rather time consuming.
Id like to process this using a bash script and writing all of the IDs to one file and then all of the CLASSes to another file, or the same file as long as it differentiates where IDs stop and CLASSes begin.
Can anyone help me?
Thanks in advance.