[LBo] "find" util

Howard Rosen hrosen33 at highstream.net
Mon Nov 13 20:19:36 CET 2006


On Mon, 2006-11-13 at 17:26 +0000, Geoff Jones wrote:
> Hi,
> I have been playing with "find" [ seems I could spend a week on this alone ! ]
> 
> > geoff at debian:~/myfiles$ find . -name "[a-m]*" -exec mv "{}" ../dir_a_m \;
> > geoff at debian:~/myfiles$ find . -name "[!a-m]*" -exec mv "{}" ../dir_n_z  \;
> > mv: cannot move `.' to `../dir_n_z/.': Device or resource busy
> 
> 
> Does the last err message mean once all the current dir files are moved, it is 
> trying to move the current directory itself?
> [ It has the desired effect of moving a-m files to dir_a_m and n-z files to 
> dir_n_z ]
> 
> Does any-one have links to good "find" syntax  tutorial - I found the man + 
> info pages hard going.

This from an earlier posting:

This somewhat tutorial on find provides lots of examples to make
learning about find fun:

http://www.linux.ie/newusers/beginners-linux-guide/find.php



> Thanks,
> 
> Geoff.



More information about the QnA mailing list