processing cli args
This commit is contained in:
parent
407c980690
commit
9c74ad9449
8
plot.sh
8
plot.sh
@ -2,14 +2,20 @@
|
|||||||
|
|
||||||
# THIS IS A KLUDGE
|
# THIS IS A KLUDGE
|
||||||
|
|
||||||
|
nbsamp=3000 # nombre d'echantillon
|
||||||
|
|
||||||
|
if [ $# -eq 1 ]; then
|
||||||
|
nbsamp=$1
|
||||||
|
fi
|
||||||
|
|
||||||
DATAFILE="serial/foo.dat"
|
DATAFILE="serial/foo.dat"
|
||||||
IMAGE="graphe.png"
|
IMAGE="graphe.png"
|
||||||
TMPFILE="/dev/shm/tmpdata"
|
TMPFILE="/dev/shm/tmpdata"
|
||||||
|
|
||||||
|
echo $nbsamp
|
||||||
wc -l ${DATAFILE}
|
wc -l ${DATAFILE}
|
||||||
|
|
||||||
tail -2500 < ${DATAFILE} > ${TMPFILE}
|
tail -3000 < ${DATAFILE} > ${TMPFILE}
|
||||||
|
|
||||||
gnuplot << __EOC__
|
gnuplot << __EOC__
|
||||||
set term png size 1600,800
|
set term png size 1600,800
|
||||||
|
Loading…
Reference in New Issue
Block a user