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

Re: Using -prune option of find to ignore hidden directories



On Thursday, May 04, 2017 01:45:30 AM Bob McGowan wrote:
> On 05/03/2017 07:44 PM, rhkramer@gmail.com wrote:

...

> >> On my (Wheezy) system, I tried that, i.e.:
> >> 
> >> 
> >> echo find /home/<my_username> -type d -name .*
> >> 
> >> and
> >> 
> >> echo find /home/<my_username> -type d -name '.*'
> >> 
> >> and, in both cases, I got the same result:
> >> 
> >> find /home/<my_username> -type d -name .*

> >> Any clarification will be welcomed!
> 
> What directory were you in when you ran the command?  If you were in
> your home directory, the .* should have expanded into ". .. <and every
> .file and .directory>", if you were in some other directory you might
> only see the ". .." (dot dotdot).

Thanks, that clarifies it!  I was not in my home directory.  Now, trying the 
same thing in my home directory, I see the difference!

> When I ran it in my home directory, I saw everything from .ICEauthority
> to .xsession-errors.


Reply to: