Merge pull request #10 from Tibo-le-canard/patch-1

Replacing | tee by the operator >
This commit is contained in:
2017-04-21 15:55:13 -04:00
committed by GitHub

View File

@@ -6,7 +6,7 @@
# 0409 means english (wIndex)
# wLength is the size of the descriptor and this is what we want
LOGFILE=/home/pi/HackPi/usbreq.log
dmesg | grep "USB DWC2 REQ 80 06 03" | tee $LOGFILE
dmesg | grep "USB DWC2 REQ 80 06 03" > $LOGFILE
WLENGTHS=`awk '$9!="0000" { print $10 }' $LOGFILE`
TOTAL=0
COUNTER=0