1
0
Fork 0

scriptlet to extract date from rtl_power CSV

main
Jeff Moe 2023-01-29 13:44:24 -07:00
parent cbda1a6a3a
commit 7169a6d34b
1 changed files with 12 additions and 0 deletions

12
get-samples 100755
View File

@ -0,0 +1,12 @@
#!/bin/bash
rm -f sample.csv
for i in `ls -1 *csv | sort -V`
do AZ=`echo $i | cut -f 2 -d "-"`
SAMPLE=`grep ", 400000000, " $i | head -1 | cut -f 7 -d " " | sed -e 's/,//g'`
echo "$AZ, $SAMPLE" >> sample.csv
done
cat sample.csv