updateZip.sh 333 B

1234567891011121314151617181920212223242526272829303132
  1. #!/bin/bash
  2. if [ $# -lt 2 ] ;
  3. then
  4. echo Usage $0 i0 i1;
  5. exit 0;
  6. fi;
  7. i0=$1;
  8. i1=$2;
  9. DCM=$HOME/software/src/EMBRACE/dcmodify.sh
  10. mwd=$PWD;
  11. echo $mwd;
  12. for ((i=$i0;i<$i1;i++));
  13. do
  14. nm=`printf "LJU%03d" $i`;
  15. cd $mwd/$nm;
  16. $DCM;
  17. rm *.bak;
  18. cd $mwd;
  19. ls $nm.zip;
  20. for f in $nm/*.dcm;
  21. do
  22. zip $nm.zip $f;
  23. done;
  24. echo $nm;
  25. done;