# Splits /dimv9p_enc/data/radrev/2005/185 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/dimv9p_enc/data/radrev/2005/ mkdir 185a mkdir 185b mkdir 185c mkdir 185d mkdir 185e # Use the exposure ID in the file names to move data from # the daily directory to the 'part' directories mv 185/*_90003* 185a/ mv 185/*_90004* 185a/ mv 185/*_90005* 185a/ mv 185/*_90006* 185a/ mv 185/*_90007* 185a/ mv 185/*_90008* 185a/ mv 185/*_90009* 185b/ mv 185/*_9001* 185c/ mv 185/*_901* 185d/ mv 185/*_902* 185d/ mv 185/*_904* 185d/ mv 185/*_906* 185e/ mv 185/*_907* 185e/ mv 185/*_908* 185e/ # Make sure 185 directory is empty find 185/ cd /n/diraid02/data/lien/dimv9p_enc/ tar cvf DOWNLOAD/2005185a.tar data/radrev/2005/185a tar cvf DOWNLOAD/2005185b.tar data/radrev/2005/185b tar cvf DOWNLOAD/2005185c.tar data/radrev/2005/185c tar cvf DOWNLOAD/2005185d.tar data/radrev/2005/185d tar cvf DOWNLOAD/2005185e.tar data/radrev/2005/185e mv DOWNLOAD/2005185a.tar /n/pdsraid01/archive/dimv9p_enc/DOWNLOAD/ mv DOWNLOAD/2005185b.tar /n/pdsraid01/archive/dimv9p_enc/DOWNLOAD/ mv DOWNLOAD/2005185c.tar /n/pdsraid01/archive/dimv9p_enc/DOWNLOAD/ mv DOWNLOAD/2005185d.tar /n/pdsraid01/archive/dimv9p_enc/DOWNLOAD/ mv DOWNLOAD/2005185e.tar /n/pdsraid01/archive/dimv9p_enc/DOWNLOAD/ # Move data back from 'part' directories back to the original DOY directory cd /n/diraid02/data/lien/dimv9p_enc/data/radrev/2005/ mv 185a/* 185/ mv 185b/* 185/ mv 185c/* 185/ mv 185d/* 185/ mv 185e/* 185/ mv 185f/* 185/ mv 185g/* 185/ mv 185h/* 185/