mirror of
https://github.com/alvierahman90/ssl2csv.git
synced 2024-12-15 10:31:59 +00:00
initial commit
This commit is contained in:
commit
82ff4c9c8d
12
ssl2csv
Executable file
12
ssl2csv
Executable 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
|
Loading…
Reference in New Issue
Block a user