Fix log parsing #5422
authorCyprien Noel <cyprien.noel@gmail.com>
Wed, 12 Apr 2017 08:42:59 +0000 (01:42 -0700)
committerCyprien Noel <cyprien.noel@gmail.com>
Wed, 12 Apr 2017 08:42:59 +0000 (01:42 -0700)
tools/extra/parse_log.sh

index 9892c89..122eb9e 100755 (executable)
@@ -39,7 +39,7 @@ rm aux.txt aux0.txt aux1.txt aux2.txt aux3.txt aux4.txt
 grep '] Solving ' $1 > aux.txt
 grep ', loss = ' $1 >> aux.txt
 grep 'Iteration ' aux.txt | sed  's/.*Iteration \([[:digit:]]*\).*/\1/g' > aux0.txt
-grep ', loss = ' $1 | awk '{print $9}' > aux1.txt
+grep ', loss = ' $1 | awk -F = '{print $2}' > aux1.txt
 grep ', lr = ' $1 | awk '{print $9}' > aux2.txt
 
 # Extracting elapsed seconds