How do I print the filename in awk?
I have an issue where I am trying to find pdf files that contain pdfx: (metadata) in Windows.
I have cygwin installed but grep is giving me the same results for: Code:
grep 'pdfx:' *.pdf Code:
grep -v 'pdfx:' *.pdf Code:
gawk '(/pdfx:/)' *.pdf Is there a way of printing the filename in gawk? |
Code:
gawk '/pdfx:/{print FILENAME; nextfile}' *.pdf |
Excelent!
Thanks for that it works perfectly. |
All times are GMT -5. The time now is 08:32 PM. |