Hi, Doug,
When I use grep, I usually keep it simple, and CD to the directory of where the files are that i want to search, and set my path to include grep (if it is not already in there).
Then I issue something like:
grep -i 'STRING' *.txt
This will search all of the '.txt' files for any containing the string "STRING" (whether upper or lower case, thanks to -i).
You mentioned .PDF files. Those are not really text files; they are more like a binary file or a zip file, a container with all of the complex formatting etc., so you cannot really search those directly using "grep" -- you would first need to use some other tool to extract the "text" and then search that.
Hope that helps,
Mark S. Waterbury
On Friday, July 18, 2025 at 03:34:11 PM EDT, DEnglander--- via MIDRANGE-L <midrange-l@xxxxxxxxxxxxxxxxxx> wrote:
I am trying to search an IFS folder and its sub-folders for a string using
GREP. I keep getting this error:
grep: 001-2104 Error found reading from file xxxxx.pdf. Conversion error.
Can someone tell me if I see this line and only this message line on the QPRINT entry for the job, does this mean GREP stopped after this message, or did it continue and find nothing?
Is there some type of summary that could tell me how many objects it
scanned? Is there a way to tell GREP to only search in .TXT files [for
example]?
Thank you,
Doug
As an Amazon Associate we earn from qualifying purchases.