Created
September 28, 2012 17:02
-
-
Save justinkamerman/3800987 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Write column headers to data file | |
$ echo "t lt ts s lb rc rm tn dt by" > $DATAFILE | |
# Extract values in quotes | |
$ sed -n '/^<httpSample/{s/[^"]*\("[^"]*"\)[^"]*/\1 /gp}' $JTLFILE >> $DATAFILE | |
# Data file looks something like this... | |
$ head $DATAFILE | |
t lt ts s lb rc rm tn dt by | |
"319" "319" "1348598679755" "true" "service-M" "200" "OK" "Thread Group 1-1" "text" "2918" | |
"2167" "2159" "1348598680583" "true" "service-J" "200" "OK" "Thread Group 1-1" "text" "2853" | |
"22" "22" "1348598683251" "true" "service-A" "200" "OK" "Thread Group 1-1" "text" "6114" | |
"31" "31" "1348598685752" "true" "service-M" "200" "OK" "Thread Group 1-2" "text" "2918" | |
"192" "186" "1348598686284" "true" "service-J" "200" "OK" "Thread Group 1-2" "text" "2853" | |
"24" "24" "1348598686977" "true" "service-A" "200" "OK" "Thread Group 1-2" "text" "6114" | |
"4999" "4999" "1348598683774" "true" "service-E" "200" "OK" "Thread Group 1-1" "text" "10869" | |
"190" "190" "1348598689274" "true" "service-E" "200" "OK" "Thread Group 1-1" "text" "9893" | |
"9" "9" "1348598689965" "true" "service-B" "200" "OK" "Thread Group 1-1" "text" "6520" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment