From fb799b22c544c8fa9bb687baf4cde3e2fa560b88 Mon Sep 17 00:00:00 2001 From: Leonard Krause Date: Sun, 25 Jun 2017 16:50:05 +0200 Subject: [PATCH] very little script to clean the csv into a valid 2i for the emulator --- cleanupcsv | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 cleanupcsv diff --git a/cleanupcsv b/cleanupcsv new file mode 100755 index 0000000..0ac6595 --- /dev/null +++ b/cleanupcsv @@ -0,0 +1,10 @@ +##!/bin/sh + + +##usage: + +# IMPORTANT! do not use ";" in any of the cells which are chronological before your cells with the 25bits +# export your csv with ";" as seperator. +# ./cleanupcsv origin.csv target.2i (be careful not to override your origin ;) + +awk -F ";" '{print $14":"$15,$16,$17,$18,$19,$20,$21,$22,$23,$24,$25,$26}' $1 | egrep "([0-9]){5}:([0-9])+" > $2; \ No newline at end of file