Ow Mun Heng ha scritto:
On Fri, 2005-01-14 at 18:04, Ciaran McCreesh wrote:^^^^^^^^
On Fri, 14 Jan 2005 17:48:15 +0800 Ow Mun Heng <[EMAIL PROTECTED]> wrote: | I'm trying to move a bunch of PDFs which has the words "gentoo" in it | into a folder marked as "Gentoo/" and somehow I'm not succedding. | (I'm too stubborn to want to do it the cut and paste way in nautilus"
Assuming by "folder" you mean "directory":
Yes
find . -type f -maxdepth 1 -iname '*gentoo*' -exec mv "{}" Gentoo/ \;
That worked Great. I was using
find . -type f -maxdepth 1 -iname *gentoo*
Bash expand *gentoo* to all the files in your current dir, "*gentoo*" instead is passed as is to find
and that didn't work. How come?? (it lists everything!)
-- [email protected] mailing list
