find . \( -type f \) -o \( -name "*.rpm" -prune \) find . \( -name "*.sh" \) -o \( -name "*.rpm" -prune \)
The second command excludes .rpm but the first one doesn't.
What's the problem with first one?
Os:: Rhel 6(Redhat Enterprise Linux 6)
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community