Answer the question
In order to leave comments, you need to log in
How to write a query to search for a commented tag in files using grep?
Hello everyone, tell me how to correctly formulate a query specifically for searching for a comment?
find /home -type f -name "*.php" -exec grep -i -H "<!-- noindex -->"
Answer the question
In order to leave comments, you need to log in
What type of project did you choose? And I figured out when trying to solve this problem that there is not enough memory,
find /var/www -type f -name "*.html"
Substitute the found in cat
cat $(find /var/www -type f -name "*.html" )
and its output in grep
cat $(find /var /www -type f -name "*.html" ) | grep -i -H "<\!--"
and you missed |
I myself am a teapot) I have been mastering UNIX for a couple of weeks.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question