Monitoring du Phytotron
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

exemple.sh 332B

123456789101112131415161718192021
  1. #!/bin/bash
  2. DATAFILE=/tmp/fake-datafile
  3. #----- collect the datas
  4. > ${DATAFILE}
  5. for s in $(seq 1 20)
  6. do
  7. v=$(./fake-values -s -t 1 2> /dev/null)
  8. echo $s $v >> ${DATAFILE}
  9. done
  10. #----- do dome useless computations
  11. awk '
  12. NR==1 { debut = $2 }
  13. { print $2-debut, $3 }
  14. ' \
  15. < ${DATAFILE}