DD2-monitor/exemple.sh

14 lines
196 B
Bash
Raw Normal View History

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