# Splits /dimv9p_enc/data/radrev/2005/178 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 178a mkdir 178b # Use the exposure ID in the file names to move data from # the daily directory to the 'part' directories mv 178/*_800000* 178a/ mv 178/*_800001* 178a/ mv 178/*_800002* 178a/ mv 178/*_800003* 178a/ mv 178/*_800004* 178a/ mv 178/*_800005* 178a/ mv 178/*_800006* 178a/ mv 178/*_800007* 178a/ mv 178/*_8000080* 178a/ mv 178/*_8000081* 178a/ mv 178/*_8000082* 178a/ mv 178a/*_800008* 178b/ mv 178a/*_800009* 178b/ mv 178a/*_80001* 178b/ # Make sure 178 directory is empty find 178/ cd /n/diraid02/data/lien/dimv9p_enc/ tar cvf DOWNLOAD/2005178a.tar data/radrev/2005/178a tar cvf DOWNLOAD/2005178b.tar data/radrev/2005/178b mv DOWNLOAD/2005178a.tar /n/pdsraid01/develop/dif-c-mri-3-nav-9p-encounter-v1.0/DOWNLOAD/ mv DOWNLOAD/2005178b.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 178a/* 178/ mv 178b/* 178/