The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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 02-07-2007
dsravan dsravan is offline
Registered User
  
 

Join Date: Jul 2006
Posts: 188
Back up of multiple data files

I have filesi in a direcotry that start with different names but have dates in the format 01212006. Along with these files there are also files with different dates. What i want to do is copy all the files that have 01212006 in them to 01072007 and move the old files to different directory.

For e.g file of interest : abc.01212006.1.dat
file of no interest abc.01262006.1.dat

I need the file of interest to be copied to abc.01072007.1.dat and then move the old file to diffrerent directory. How can I acheive this?