processing cli args

This commit is contained in:
phyto 2019-05-27 15:52:32 +02:00
parent 407c980690
commit 9c74ad9449

View File

@ -2,14 +2,20 @@
# THIS IS A KLUDGE
nbsamp=3000 # nombre d'echantillon
if [ $# -eq 1 ]; then
nbsamp=$1
fi
DATAFILE="serial/foo.dat"
IMAGE="graphe.png"
TMPFILE="/dev/shm/tmpdata"
echo $nbsamp
wc -l ${DATAFILE}
tail -2500 < ${DATAFILE} > ${TMPFILE}
tail -3000 < ${DATAFILE} > ${TMPFILE}
gnuplot << __EOC__
set term png size 1600,800