0
I want to get the all comment of all files in a folder.
And what I have tried is
ls -R | awk '/<!--/,/-->/' >> result
But it shows nothing in the result file.
But if I use the awk '/<!--/,/-->/' >> result
to a file it works.
The html comment tag is <!-- some text here -->
.
How should I fix it.