I'm using the following command with pdf to search for specific strings inside several pdfs, and move for a target directory, if there is a match:
pdfgrep -H "DESIRE STRING" TARGET/* | grep --ignore-case --perl-regexp --only-matching '.*(.PDF)'| uniq | xargs -I{} mv -i {} DESTINATION/
I would like to print ok if a match is found, or not found if there isn't a match. Is it possible to include this in command line?
Thanks.
برچسب:
نویسنده: استخدام کار