Find command with multiple file types

Joel Hammer Joel
Mon May 17 11:54:18 PDT 2004


This simple chore of setting up a backup program is taking my evening. I
remember now why I was putting this off.

I am using find to find files newer than the last backup to feed them to
tar. This is working as expected, more or less. I want to find all file
types except directories, especially regular files and symbolic links
(which will not be followed.) It seems that the -type option only takes
one parameter at a time.  Is there some way for a single find command
to search for several specified file types? man find and info find are
both silent on this issue.

Thanks,

Joel



More information about the Linux-users mailing list