1

Find specific files only in current directory...not sub directories AIX

view story
linux-howto

http://www.unix.com – Hi, I have to find specific files only in the current directory...not in the sub directories. But when I use Find command ... it searches all the files in the current directory as well as in the subdirectories. I am using AIX-UNIX machine.Please help.. I am using the below command. And i am able to list files only in the directory but not in sub-directories. find . ! -name . -prune -type f -print. But I need to list only *.pdf and *.PDF file. Below command is not working. Please help. find . ! -name "*.[Pp][Dd][Ff]" -prune -type f -print. (HowTos)