Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #print error timestamps
- JSON="$1.json"
- echo -e "\nFault injection Start/Finish timestamp"
- grep "start\|finish" $JSON | sort -r | awk '{ print $2 }' | cut -d, -f1 | while read;do date -d@$REPLY;done
- echo -e "\nError Trace timetamp:"
- grep Trace $JSON -B5 | grep timestamp | awk '{ print $2 }' | cut -d, -f1 | while read;do date -d@$REPLY;done
- echo -e "\nError Trace:"
- grep Trace $JSON
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement