I am trying to use pdfgrep to search a keyword among multiple pdf files within a folder. My command is this:
pdfgrep -in keyword *.pdf
This command will output the pdf file names and page numbers on the terminal. I would like each pdf file name to only show once if its contents contain the keyword. That will make it easier to read.
Also, I would like the output to be in a txt file in the current directory instead of showing on the terminal.