DD2-monitor/exemple.sh

14 lines
197 B
Bash
Raw Normal View History

2018-12-05 16:30:13 +01:00
#!/bin/bash
DATAFILE=/tmp/fake-datafile
> ${DATAFILE}
2018-12-05 16:38:03 +01:00
for s in $(seq 1 20)
2018-12-05 16:30:13 +01:00
do
v=$(./fake-values 2> /dev/null)
echo $s $v | tee -a ${DATAFILE}
done
2018-12-05 16:38:03 +01:00
awk '{print NR " " $2}' < ${DATAFILE}