On January 14, 2005 01:19 pm, Boyd Stephen Smith Jr. wrote:
> On Friday 14 January 2005 07:00 am, Ow Mun Heng <[EMAIL PROTECTED]>
>
> wrote:
> > I was using
> >
> > find . -type f -maxdepth 1 -iname *gentoo*
> >
> > and that didn't work. How come?? (it lists everything!)
>
> *gentoo* was being expanded by bash; I'm not sure why find didn't give you
> an error.
you could probably use:
$ find . -type f -maxdepth 1 -name '*gentoo*' -print0 | \
xargs -0 --replace mv "{}" /path/to/new/dir/
--
without law or compulsion, men would dwell in harmony
- lau tzu, "tao te ching: chapter xxxii"
--
[email protected] mailing list