#!/bin/csh 

# organize SEG-Y files

foreach DAY (0318 0319 0320 0321 0322 0323 0324 0325 0326 0327 0328)
   echo Working on Day ${DAY}
   if (! -e 2016$DAY) then 
	mkdir 2016$DAY
   endif
   #\mv -i `find ../Subtask6_2_Deploy_and_Operate_DAS_DTS/Silixa -type f -name "BNL_IDAS_2016*.sgy" |   grep 2016$DAY `  2016$DAY 
   #\mv -iv `find ../Subtask6_2_Deploy_and_Operate_DAS_DTS/Silixa -type f -name "BNL_IDAS_test*.sgy" |   grep 16$DAY `  2016$DAY 
   #\mv -iv `find /s11/PoroTomo/test_data/PoroTomo/22hrExampleData/SurfaceFibre -type f -name "PoroTomo_iDAS16043*.sgy" |   grep 16$DAY `  2016$DAY 
   #\mv -iv `find /PoroTomo/test_data/PoroTomo/22hrExampleData/WellFibre -type f -name "PoroTomo_iDAS025_*.sgy" |   grep 16$DAY `  2016$DAY 
   #\mv -iv `find /s11/PoroTomo/DATA/SEGY9/WellFibre1/ -type f -name "PoroTomo_iDAS025_*.sgy" |   grep 16$DAY `  2016$DAY 
   #echo  2016$DAY  `find 2016$DAY -name "*.sgy" | wc -l` 
   rsync -rav --remove-source-files /s11/PoroTomo/DATA/WellFibre_SEGY1/PoroTomo_iDAS025_16${DAY}*.sgy /data/PoroTomo/DATA/DASV/2016$DAY
end # loop over days

