[WBEL-users] Linux Shell Scripting

Pete Biggs pete at physchem.ox.ac.uk
Sat Apr 30 16:16:25 CDT 2005


> 
> Here is what I use:-
> 
> $ find /home/andrew/ | grep '\.doc' | xargs mv --target-directory=/backup/
> 

You could try

    find /home/andrew -name '*.doc' -exec mv {} /backup \;

In good Unix tradition: many ways to do the same thing.


More information about the Whitebox-users mailing list