[Cialug] find it already!
Todd Walton
tdwalton at gmail.com
Sun May 25 21:44:48 CDT 2008
On Sun, May 25, 2008 at 12:26 PM, Zachary Kotlarek <zach at kotlarek.com> wrote:
> No, that would be:
> find `pwd` -regex '.*' -print
> In regex an asterisk specifies a number of repeats -- 0 or more -- for the
> preceding pattern. You still need a pattern if you intend to actually match
> something.
>
> But at least in my version of `find` you can just do this:
> find `pwd` -print
> or even:
> find `pwd`
> to get exactly the same output. And if you don't need absolute paths, you
> can even just call:
> find
Holy cow. You just clarified years of misunderstanding. Thank you.
Recap: the argument to regex must be quoted and I must remember that
it's regex, not wildcarding like in -name. And using find without
arguments or just without the expressionn will work.
-todd
More information about the Cialug
mailing list