bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bug report: GNU find version 4.1


From: Tim Mooney
Subject: Re: bug report: GNU find version 4.1
Date: 6 Nov 2000 19:44:30 GMT

In article <address@hidden>,
paul f almquist <address@hidden> wrote:
> 
>     bash$ cd /tmp 
>     bash$ mkdir some_directory
>     bash$ find . -name some_directory -exec /bin/rm -r {} \;
>     find: ./some_directory: No such file or directory 

Try using `-depth' with the rest of your command.  The problem is that
find is noting that there is a directory named 'some_directory', removing
it, and *then* trying to dive into it and continue find'ing.  That's
where the error is coming from -- it cant cd into the directory it just
removed.  You need to make it do a depth-first search, which is what
`-depth' is all about.

Tim
-- 
Tim Mooney                              address@hidden
Information Technology Services         (701) 231-1076 (Voice)
Room 242-J1, IACC Building              (701) 231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164



reply via email to

[Prev in Thread] Current Thread [Next in Thread]