# Splits /dihi9p_enc/data/radrev/2005/183 into smaller subdirectories # of about 450-500 MB each. # # 2006-10-12, sam: Ran this script in the /n/diraid02/data/lien/data/ # area which has not been touched since the data were copied to # /n/pdsraid01/archive/, then moved the tars to /n/pdsraid01/archive/. # cd /n/diraid02/data/lien/dihi9p_enc/data/radrev/2005/ mkdir 183a mkdir 183b mkdir 183c mkdir 183d mkdir 183e mkdir 183f mkdir 183g mkdir 183h # Use the exposure ID in the file names to move data from # the daily directory to the 'part' directories mv 183/*_85000* 183a/ mv 183/*_8600000* 183b/ mv 183/*_8600001* 183c/ mv 183/*_8600002* 183d/ mv 183/*_8600003* 183e/ mv 183/*_8800000* 183f/ mv 183/*_8800002* 183g/ mv 183/*_8800003* 183h/ # Make sure 183 directory is empty find 183/ cd /n/diraid02/data/lien/dihi9p_enc/ tar cvf DOWNLOAD/2005183a.tar data/radrev/2005/183a tar cvf DOWNLOAD/2005183b.tar data/radrev/2005/183b tar cvf DOWNLOAD/2005183c.tar data/radrev/2005/183c tar cvf DOWNLOAD/2005183d.tar data/radrev/2005/183d tar cvf DOWNLOAD/2005183e.tar data/radrev/2005/183e tar cvf DOWNLOAD/2005183f.tar data/radrev/2005/183f tar cvf DOWNLOAD/2005183g.tar data/radrev/2005/183g tar cvf DOWNLOAD/2005183h.tar data/radrev/2005/183h # Copy the tar files to the pdsraid01 area mv DOWNLOAD/2005183a.tar /n/pdsraid01/archive/dihi9p_enc/DOWNLOAD/ mv DOWNLOAD/2005183b.tar /n/pdsraid01/archive/dihi9p_enc/DOWNLOAD/ mv DOWNLOAD/2005183c.tar /n/pdsraid01/archive/dihi9p_enc/DOWNLOAD/ mv DOWNLOAD/2005183d.tar /n/pdsraid01/archive/dihi9p_enc/DOWNLOAD/ mv DOWNLOAD/2005183e.tar /n/pdsraid01/archive/dihi9p_enc/DOWNLOAD/ mv DOWNLOAD/2005183f.tar /n/pdsraid01/archive/dihi9p_enc/DOWNLOAD/ mv DOWNLOAD/2005183g.tar /n/pdsraid01/archive/dihi9p_enc/DOWNLOAD/ mv DOWNLOAD/2005183h.tar /n/pdsraid01/archive/dihi9p_enc/DOWNLOAD/ # Move data back from 'part' directories back to the original DOY directory cd /n/diraid02/data/lien/dihi9p_enc/data/radrev/2005/ mv 183a/* 183/ mv 183b/* 183/ mv 183c/* 183/ mv 183d/* 183/ mv 183e/* 183/ mv 183f/* 183/ mv 183g/* 183/ mv 183h/* 183/