git clone https://github.com/MatthiasEbner2002/pdf_search.git
cd pdf_search
./install.sh
git clone https://github.com/MatthiasEbner2002/pdf_search.git
cd pdf_search
make // this may throw an error that poppler-glib is missing you can install that yourself or run ./install_deps.sh
Tip
change the pdf_search in /usr/local/bin/pdf_search to a command name of your choice, for later use.
sudo ln -s "$(pwd)/pdf_search" /usr/local/bin/pdf_search
Dont move the files into a other location, there is a softlink to these files, into '/usr/local/bin/'. So i can change the files if I want and dont have to change the links.
sudo rm /usr/local/bin/pdf_search
pdf_search <word_to_search> [-s] [-r] [-l] [-h/--help]
- <word_to_search>: The word to search for within PDF files.
- -s: Enable case-sensitive search.
- -r: Recursively search subdirectories.
- -l: Print all the lines, with a occurence.
- -h/--help: Display this usage information.
Search for "example" in all PDF files in the current directory:
pdfs example
Search for "example of this" in all PDF files in the current directory:
pdfs "example of this"
Search for "example" in all PDF files in the current directory and subdirectories:
pdfs example -r
Search for "example" in all PDF files in the current directory with case sensitivity:
pdfs example -s
Search for "example" in all PDF files in the current directory and subdirectories, with case sensitivity:
pdfs example -s -r
Search for "example" in all PDF files in the current directory and print all lines with a occurence:
pdfs example -l