Advertisement
Guest User

Untitled

a guest
Jan 17th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. #print error timestamps
  4.  
  5. JSON="$1.json"
  6.  
  7. echo -e "\nFault injection Start/Finish timestamp"
  8. grep "start\|finish" $JSON | sort -r | awk '{ print $2 }' | cut -d, -f1 | while read;do date -d@$REPLY;done
  9.  
  10. echo -e "\nError Trace timetamp:"
  11. grep Trace $JSON -B5 | grep timestamp | awk '{ print $2 }' | cut -d, -f1 | while read;do date -d@$REPLY;done
  12.  
  13. echo -e "\nError Trace:"
  14. grep Trace $JSON
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement