[NTLUG:Discuss] Finding files

Robert Citek robert.citek at gmail.com
Thu May 15 01:24:42 CDT 2008


On Thu, May 15, 2008 at 12:26 AM, David Simmons <dave at dgnal.net> wrote:
> make sure you also re-run with ".*"
>
> because, I think
> by default, that * really doesn't mean everything - it'll miss the DOT*
> files

-name '*' really does mean everything but is superfluous.  find will
get all files, including the "dot" files.

$ touch /tmp/.zfoo

$ find /tmp/  | grep zfoo
/tmp/.zfoo

$ find /tmp/ -name '*' | grep zfoo
/tmp/.zfoo

$ find /tmp/ -mtime 10 | grep zfoo

$ find /tmp/ -mtime -10 | grep zfoo
/tmp/.zfoo

Regards,
- Robert



More information about the Discuss mailing list