Find HTML Files Containing main.css (case-insensitive)
Your task: In the current directory tree, locate all files with the extension .html (case-insensitive), and search each for the string main.css ignoring case.
Deliverables: a file named results.txt containing all matches, and the exact command(s) used to generate it.
Steps:
From the repository root, run one of the commands below to produce a results.txt with all matches.
Ensure the output shows one line per match in the format: ::, where line-content is the full line that contains the match.
If multiple matches occur in the same file, there will be multiple lines in results.txt.
You can also provide a brief note counting total matches by counting lines in results.txt.
Commands (choose one or try both):
On GNU grep / find (portable):
find . -type f -iname '*.html' -exec grep -ni 'main.css' {} + > results.txt
If you have ripgrep (rg) installed:
rg -i --glob '*.html' 'main.css' . > results.txt
Verification: Open results.txt and confirm the lines shown include the matching substring main.css (case-insensitive).