bare exemple of use, bashism
This commit is contained in:
parent
bbc6c35105
commit
9729f5ee02
13
exemple.sh
Executable file
13
exemple.sh
Executable 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}
|
Loading…
Reference in New Issue
Block a user