This is a discussion on find prune question within the Linux General forums, part of the Linux Forums category; Hi, In order to find all files on the system but not in the /mnt directory and whose names begin ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
pascal wrote:
> Hi, > > In order to find all files on the system but not in the /mnt directory > and whose names begin with my_file, i tried without success > > find / -name 'my_file*' -path '/mnt' -prune -o -print > > Any suggestion please ? > > > Pascal Actually, if updatedb was run recently, using locate would be much, MUCH faster. |
|
|||
|
pascal <pascal@invalid.fr> writes:
> Hi, > > In order to find all files on the system but not in the /mnt directory > and whose names begin with my_file, i tried without success > > find / -name 'my_file*' -path '/mnt' -prune -o -print > > Any suggestion please ? find / -path /mnt -prune -o -name 'my_file*' -print |
|
|||
|
On Sat, 12 Mar 2005 15:23:57 +0100, pascal thoughtfully wrote:
> Hi, > > In order to find all files on the system but not in the /mnt directory and > whose names begin with my_file, i tried without success > > find / -name 'my_file*' -path '/mnt' -prune -o -print > > Any suggestion please ? > > > Pascal Interesting. I think your problem is with the -o print Try find / -path '/mnt' -prune -o -name 'my_file*' |