I have to do a report on how many times a certain css class appears in the content of our pages (over 10k pages). The trouble is, the header and footer contains that class, so a grep returns every single page. (not useful)
So, how do I grep for content?
I have a <!-- main content -->
and a <!-- end content -->
comment on every page.
So how do I grep (do I even grep?) for what is between those comments?
This is hosted on a linux server, and I have access to Grep, Awk and Sed.
Ideally, I would get a report (.txt or .csv) with pages and line numbers where the class shows up, but just a list of the pages themselves would suffice.
Thanks!