# Splits /dihi9p_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/dihi9p_enc/data/radrev/2005/ mkdir 185a mkdir 185b mkdir 185c mkdir 185d mkdir 185e mkdir 185f mkdir 185g mkdir 185h mkdir 185i mkdir 185j mkdir 185k # Use the exposure ID in the file names to move data from # the daily directory to the 'part' directories mv 185/*_9000022* 185a/ mv 185/*_9000023* 185a/ mv 185/*_9000024* 185b/ mv 185/*_9000025* 185c/ mv 185/*_9000026* 185c/ mv 185/*_9000027* 185d/ mv 185/*_9000028* 185d/ mv 185/*_9000029* 185d/ mv 185/*_9000030* 185d/ mv 185/*_9000031* 185d/ mv 185/*_9000032* 185d/ mv 185/*_9000033* 185d/ mv 185/*_9000034* 185d/ mv 185/*_9000035* 185e/ mv 185/*_9000036* 185e/ mv 185/*_9000037* 185e/ mv 185/*_9000038* 185e/ mv 185/*_9000039* 185e/ mv 185/*_900004* 185e/ mv 185/*_900005* 185f/ mv 185/*_900006* 185f/ # Lookback imaging... mv 185/*_90100* 185g/ mv 185/*_90200* 185g/ mv 185/*_90400* 185g/ mv 185/*_90600* 185h/ mv 185/*_90700* 185h/ # Make sure 185 directory is empty find 185/ cd /n/diraid02/data/lien/dihi9p_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 tar cvf DOWNLOAD/2005185f.tar data/radrev/2005/185f tar cvf DOWNLOAD/2005185g.tar data/radrev/2005/185g tar cvf DOWNLOAD/2005185h.tar data/radrev/2005/185h mv DOWNLOAD/2005185a.tar /n/pdsraid01/archive/dihi9p_enc/DOWNLOAD/ mv DOWNLOAD/2005185b.tar /n/pdsraid01/archive/dihi9p_enc/DOWNLOAD/ mv DOWNLOAD/2005185c.tar /n/pdsraid01/archive/dihi9p_enc/DOWNLOAD/ mv DOWNLOAD/2005185d.tar /n/pdsraid01/archive/dihi9p_enc/DOWNLOAD/ mv DOWNLOAD/2005185e.tar /n/pdsraid01/archive/dihi9p_enc/DOWNLOAD/ mv DOWNLOAD/2005185f.tar /n/pdsraid01/archive/dihi9p_enc/DOWNLOAD/ mv DOWNLOAD/2005185g.tar /n/pdsraid01/archive/dihi9p_enc/DOWNLOAD/ mv DOWNLOAD/2005185h.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 185a/* 185/ mv 185b/* 185/ mv 185c/* 185/ mv 185d/* 185/ mv 185e/* 185/ mv 185f/* 185/ mv 185g/* 185/ mv 185h/* 185/