# Splits /dimv9p_enc/data/radrev/2005/184 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 184a mkdir 184b mkdir 184c mkdir 184d # Use the exposure ID in the file names to move data from # the daily directory to the 'part' directories mv 184/*_900000* 184a/ mv 184/*_900001* 184a/ mv 184/*_900002* 184a/ mv 184/*_900003* 184a/ mv 184/*_900004* 184a/ mv 184/*_900005* 184a/ mv 184/*_900006* 184a/ mv 184/*_900007* 184b/ mv 184/*_900008* 184b/ mv 184/*_900009* 184b/ mv 184/*_900010* 184b/ mv 184/*_900011* 184b/ mv 184/*_900012* 184b/ mv 184/*_900013* 184c/ mv 184/*_900014* 184c/ mv 184/*_900015* 184c/ mv 184/*_900016* 184c/ mv 184/*_900017* 184c/ mv 184/*_900018* 184c/ mv 184/*_900019* 184c/ mv 184/*_900020* 184c/ mv 184/*_900020* 184d/ mv 184/*_900021* 184d/ mv 184/*_900022* 184d/ mv 184/*_900024* 184d/ mv 184/*_900027* 184d/ mv 184/*_900028* 184d/ mv 184/*_900029* 184d/ mv 184/*_900030* 184d/ mv 184/*_900031* 184d/ mv 184/*_900032* 184d/ mv 184/*_900033* 184d/ # Make sure 184 directory is empty find 184/ cd /n/diraid02/data/lien/dimv9p_enc/ tar cvf DOWNLOAD/2005184a.tar data/radrev/2005/184a tar cvf DOWNLOAD/2005184b.tar data/radrev/2005/184b tar cvf DOWNLOAD/2005184c.tar data/radrev/2005/184c tar cvf DOWNLOAD/2005184d.tar data/radrev/2005/184d mv DOWNLOAD/2005184a.tar /n/pdsraid01/develop/dif-c-mri-3-nav-9p-encounter-v1.0/DOWNLOAD/ mv DOWNLOAD/2005184b.tar /n/pdsraid01/develop/dif-c-mri-3-nav-9p-encounter-v1.0/DOWNLOAD/ mv DOWNLOAD/2005184c.tar /n/pdsraid01/develop/dif-c-mri-3-nav-9p-encounter-v1.0/DOWNLOAD/ mv DOWNLOAD/2005184d.tar /n/pdsraid01/develop/dif-c-mri-3-nav-9p-encounter-v1.0/DOWNLOAD/ # Move data back from 'part' directories back to the original DOY directory cd /n/diraid02/data/lien/dimv9p_enc/data/radrev/2005/ mv 184a/* 184/ mv 184b/* 184/ mv 184c/* 184/ mv 184d/* 184/