On Sat, Dec 22, 2012 at 06:22:44AM -0800, Jack Mc Lauren wrote: > Hi fellas > How can I exclude specific directories from my find command ? I want to look > for all files in the whole system except for those in e.g /extra directory. > I use this command to find all files, but how can I exclude /extra directory ? > > find / -type f
Try this: find / -type f -not -path '/extra/*' Roland -- R.F.Smith http://rsmith.home.xs4all.nl/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)
pgpgCfbf85Cpi.pgp
Description: PGP signature