#!/bin/sh

rm Test_Results_$1

dos2unix -f $1
egrep "Entered Telecommand ID|Successfully transferred|CRC MatchedINP" $1 > inp_f.txt

sed -i 's/.*Successfully transferred data.*/Successfully transferred data/g' inp_f.txt
sed -i 's/Successfully transferred data/PASS/g' inp_f.txt

sed -i 's/CRC MatchedINP.*/CRC Matched/g' inp_f.txt
sed -i 's/CRC Matched/PASS/g' inp_f.txt

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

cat Test_Results_$1 
