The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 06-08-2007
daemongk daemongk is offline
Registered User
  
 

Join Date: Jun 2007
Posts: 1
Moving multiple files and renaming them on the fly

Hi All,
Being new to scripting I am facing a new situation. We have an application that generates a file lets say dumpfile for each user under the users home directory when they execute the application. This is quite a huge file and imagine having that for over 40 users on a daily basis. The problem is that my /home folder gets full and hence needs to have these files moved to another volume. All files being of the same name I would like to know what i should add to my simple script :

find /home core -mtime +1 -exec mv -f {} /temp/coremv \;

Thank you,
JeeKay