gen_dat script

This commit is contained in:
Artur Meski
2017-04-04 22:49:05 +02:00
parent 9c9084e4e2
commit 7746c364f1

9
results/gen_dat.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/sh
for logfile in *.log; do
log_base_name=$(basename -s .log $logfile)
dat_output="${log_base_name}.dat"
cut -d, -f 1,3 $logfile | tr -d '()' | tr ',' '\t' > $dat_output
done