#!/bin/sh

rm Test_Results_$1

dos2unix -f $1

egrep "Entered Telecommand ID|Successfully transferred data|Successfully Received data" $1 > inp_f.txt
sed -i 's/\[Socket.*S/S/g' inp_f.txt
sed -i 's/\[SO.*S/S/g' inp_f.txt
sed -i 's/data.*/data/g' inp_f.txt

sed -i 's/Succ.*/PASS/g' inp_f.txt 
cat inp_f.txt > Test_Results_$1

cat Test_Results_$1 
