-1

I'm looking for a way to search certain files named "XYHello.pdf" or "BDHello.pdf" so basically "*Hello.pdf" in a directory with subfolder and export the found files including path to the file in a text file.

So that at the end I have a list with all found files including the paths in a list. I spontaneously thought about Linux Command find.

find . -type f -iname "*Hello.pdf" 

But the problem is i need the full path to the file in a list.

3
0
find $PWD -type f -iname "*Hello.pdf" 

or

find . -type f -iname "*Hello.pdf" -exec realpath {} \;
1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.