I have a bunch of markdown files and I want to get the filename and the line number where a pattern happens. I have tried something like:
awk '/pattern/ && NR > 7 {print FILENAME, NR, $0}' *.md
What happens is that awk considers all files as one and gives the wrong number. I also use zsh and I don't know what I am missing. I already have searched on the web with no avail.
The condition for listing the file is that the pattern happens after line seven in all markdown files.