find /home/ftpusers/ \( -iname \*pgp\* -o -iname \*pgp -o -iname \*asc -o -iname \*asc\* -o -iname \*gpg -o -iname \*gpg\* \) -prune -o -type f -and -print

find /home/ftpusers/ \( -iname \*pgp\* -o -iname \*pgp -o -iname \*asc -o -iname \*asc\* -o -iname \*gpg -o -iname \*gpg\* \) -prune -o -type f -and -printf “%p\n” > file2a.txt

Advertisements