Answer the question
In order to leave comments, you need to log in
How to find all lines in all files with such parameters?
The task was to find all pictures either without alt, or without title, or without both. That is, you need to scan all text files and extract lines with img in them, then check if the line is missing an alt or title in it, and if the line is found, write somewhere in the listing indicating the file name and the line itself. How is this done with grep?
Answer the question
In order to leave comments, you need to log in
This is how it is done, in fact - by recursive grep first by img, then by the absence of something else there. Nothing complicated.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question