bem, no primeiro, eu estava trabalhando com o script que você carregou, mas não funciona no meu ambiente (Solaris 10), então esta é a resposta para sua pergunta:
#!/bin/bash
#######################################################
# Script to convert with SED and AWK a logfile to CSV #
#######################################################
######################
## Empty files ##
######################
cat /dev/null>a.txt
cat /dev/null>b.txt
cat /dev/null>c.txt
cat /dev/null>d.txt
cat /dev/null>e.txt
cat /dev/null>one.txt
cat /dev/null>two.txt
cat /dev/null>three.txt
cat /dev/null>four.txt
cat /dev/null>five.csv
#########################################
## Separate all aoutputs in files ##
#########################################
for line in 'cat speedtests/11.10.2016.log | grep "Timestamp: "';
do
echo $line |awk -F"Timestamp: " '{print $1}' | sed '/^$/d';
done>a.txt
cat a.txt;
for line in 'cat speedtests/11.10.2016.log | grep "Ping"';
do
echo $line |awk -F"Ping:" '{print $1}' | sed '/ms/d' |sed '/^$/d';
done>b.txt;
cat b.txt;
for line in 'cat speedtests/11.10.2016.log | grep "Download: "';
do
echo $line |awk -F"Download: " '{print $1}' | sed '/Mbit/d' | sed '/^$/d';
done>c.txt
cat c.txt
for line in 'cat speedtests/11.10.2016.log | grep "Upload: "';
do
echo $line |awk -F"Upload: " '{print $1}' | sed '/Mbit/d' | sed '/^$/d';
done>d.txt
cat d.txt
for line in 'cat speedtests/11.10.2016.log | grep "http"';
do
echo $line |awk -F":" '{print $2}' |sed '/^$/d' | sed '1s/./https:\//' | sed 's/\//\\\//g'
done>e.txt
cat e.txt
#################################################################
## Create outputs from previous outputs and adding a coma ##
#################################################################
while read var
do
sed "s/$/,$var/" a.txt > one.txt
done<b.txt
cat one.txt;
while read var
do
sed "s/$/,$var/" one.txt > two.txt
done<c.txt
cat two.txt;
while read var
do
sed "s/$/,$var/" two.txt > three.txt
done<d.txt
cat three.txt;
while read var
do
sed "s/$/,$var/" three.txt > four.txt
done<e.txt
cat four.txt;
##########################################
## Add header only if you requided ##
##########################################
echo "------Time---------Ping--Down---Up--------Link-------------------------------------" >five.csv
cat four.txt >>five.csv
###############################################
## This is the final output as you whish ##
###############################################
cat five.csv;
Por favor, avise
Atenciosamente Luis