I want to make a shell script for searching pattern in pdf files (to make them kind of corpus for myself!!)
I stole the following snippet from here
How to search contents of multiple pdf files?
find /path/to/folder -name '*.pdf' | xargs -P 6 -I % pdftotext % - | grep -C1 --color "pattern"
and the output looks like this
--
--
small deviation of γ from the average value 0.33 triggers
a qualitative difference in the evolution pattern, even if the
Can I make this command to print filename?
It doesn't have to be a "one-liner".
Thank you.