initial commit

This commit is contained in:
Akbar Rahman 2021-05-05 13:37:32 +01:00
commit 82ff4c9c8d

12
ssl2csv Executable file
View File

@ -0,0 +1,12 @@
#!/usr/bin/env bash
data="$(head -n -1 "$1" | grep 'AD' | cut -d= -f2 | cut -d, -f1)"
interval="$(($(head -n -1 "$1" | grep 'Interval' | cut -d= -f2)/10000000))"
cumint=0
echo $interval
for datapoint in $data
do
echo $datapoint,$cumint
cumint=$(($cumint + $interval))
done