[Novalug] find or not really or?

William Sutton william@trilug.org
Tue May 19 10:47:43 EDT 2015


no idea, but just for giggles, what's the difference between the two if 
you omit the |wc -c, replace it with |sort, cat it to a pair of files, 
and vimdiff the files?

William Sutton

On Tue, 19 May 2015, shawn wilson via Novalug wrote:

> Can someone explain this?
>
> % find $HOME -maxdepth 1 -type l -or -type f -iname "*rc" -print0 | wc -c
> 267
> % find $HOME -maxdepth 1 -type f -or -type l -iname "*rc" -print0 | wc -c
> 65
>
> I'm actually not sure where the issue is here. My other thought is
> that maxdepth is preventing links from being displayed because the
> actual location isn't "1"...?
> **********************************************************************
> The Novalug mailing list is hosted by firemountain.net.
>
> To unsubscribe or change delivery options:
> http://www.firemountain.net/mailman/listinfo/novalug
>



More information about the Novalug mailing list