DD2-monitor/exemple.sh

15 lines
198 B
Bash
Executable File

#!/bin/bash
DATAFILE=/tmp/fake-datafile
> ${DATAFILE}
for s in $(seq 1 20)
do
v=$(./fake-values 2> /dev/null)
echo $s $v | tee -a ${DATAFILE}
done
awk '{print NR " " $2}' < ${DATAFILE}