# Splits /dihvnv_enc/data/radrev/2005/184 into smaller subdirectories # of about 450-500 MB each. # # 2006-10-15, 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/develop/, then moved the tars to /n/pdsraid01/develop/. # cd /n/diraid02/data/lien/dihvnv_enc/data/radrev/2005/ mkdir 184a mkdir 184b mkdir 184c # 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/*_90000* 184a/ mv 184/*_900010* 184b/ mv 184/*_900011* 184b/ mv 184/*_900012* 184b/ mv 184/*_900013* 184b/ mv 184/*_900014* 184b/ mv 184/*_900015* 184b/ mv 184/*_900016* 184b/ mv 184/*_900017* 184b/ mv 184/*_900018* 184b/ mv 184/*_900019* 184c/ mv 184/*_90002* 184c/ mv 184/*_90003* 184c/ # Make sure 184 directory is empty find 184/ cd /n/diraid02/data/lien/dihvnv_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 mv DOWNLOAD/2005184a.tar /n/pdsraid01/develop/dif-c-hriv-3-nav-9p-encounter-v1.0/DOWNLOAD/ mv DOWNLOAD/2005184b.tar /n/pdsraid01/develop/dif-c-hriv-3-nav-9p-encounter-v1.0/DOWNLOAD/ mv DOWNLOAD/2005184c.tar /n/pdsraid01/develop/dif-c-hriv-3-nav-9p-encounter-v1.0/DOWNLOAD/ # Move data back from 'part' directories back to the original DOY directory cd /n/diraid02/data/lien/dihvnv_enc/data/radrev/2005/ mv 184a/* 184/ mv 184b/* 184/ mv 184c/* 184/