- debug
authorBart Polot <bart@net.in.tum.de>
Fri, 18 Oct 2013 03:54:59 +0000 (03:54 +0000)
committerBart Polot <bart@net.in.tum.de>
Fri, 18 Oct 2013 03:54:59 +0000 (03:54 +0000)
src/mesh/beautify_log.sh

index 379d6c5dd8357cdd95699456f06bfb1c98a0c9be..d79b9df1112270b33eb9a0a964be1fd385e6412b 100755 (executable)
@@ -6,7 +6,8 @@ cat __tmp_peers | while read line; do
     PID=`echo $line | sed -e 's/.*mesh-\([0-9]*\).*/\1/'`
     echo "$PID => $PEER"
     cat .log | sed -e "s/mesh-\([a-z2]*\)-$PID/MESH \1 $PEER/" > .log2
-    mv .log2 .log
+    cat .log2 | sed -e "s/mesh-$PID/MESH XXX $PEER/" > .log3
+    mv .log3 .log
 done 
 
 rm __tmp_peers