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 09-22-2008
osramos osramos is offline
Registered User
  
 

Join Date: Oct 2007
Posts: 21
Need script to find errored files inside directories

Hi people.

I working on a script to check for files that they are suposed not to be on the directory. I mean, inside of each directory it must have some files but some could be wrong, and i want to move the files that are wrong.

Ex:
CSPOTGET edpst/CargadoresSPOT Historicos_Spot_MDI.zip
COBGET edpst/CargadorOmelBroker ??????.xls
CORGET edpst/CargadorOmelReuters CarOmlReuts.xls

On folder " edpst/CargadoresSPOT " must only have " Historicos_Spot_MDI.zip"

On folder " edpst/CargadorOmelBroker " must only have files with " yymmdd.xls" , and no others.

I imagine this "configuration" file where the 1st column is a variable, the second is the directory and the 3rd column is the file(s) of each directory.

Did you understand what i'm wrote?

osramos