bare exemple of use, bashism

This commit is contained in:
Tonton Th 2018-12-05 16:30:13 +01:00
parent bbc6c35105
commit 9729f5ee02

13
exemple.sh Executable file
View File

@ -0,0 +1,13 @@
#!/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}