diff options
author | Bart Polot <bart@net.in.tum.de> | 2015-10-02 03:37:49 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2015-10-02 03:37:49 +0000 |
commit | ea4df299159c854db3e04244455c7628d94a66a2 (patch) | |
tree | bb6105b1f30a5ce090dcd36f45cc6535e3aaf0c9 /contrib | |
parent | f25401600fa588da62c79fd91031664098624aa5 (diff) | |
download | gnunet-ea4df299159c854db3e04244455c7628d94a66a2.tar.gz gnunet-ea4df299159c854db3e04244455c7628d94a66a2.zip |
- escape line to avoid false matches
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/process_log.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/process_log.sh b/contrib/process_log.sh index baade73d9..c25c515c2 100755 --- a/contrib/process_log.sh +++ b/contrib/process_log.sh | |||
@@ -9,9 +9,9 @@ grep "STARTING SERVICE " log > __tmp_peers | |||
9 | 9 | ||
10 | SED_EXPR="" | 10 | SED_EXPR="" |
11 | while read -r line; do | 11 | while read -r line; do |
12 | SRVC=`echo $line | sed -e 's/.*(\([^)]*\)).*/\1/'` | 12 | SRVC=`echo "$line" | sed -e 's/.*(\([^)]*\)).*/\1/'` |
13 | PEER=`echo $line | sed -e 's/.*\[\(....\)\].*/\1/'` | 13 | PEER=`echo "$line" | sed -e 's/.*\[\(....\)\].*/\1/'` |
14 | PID=`echo $line | sed -e "s/.*$SRVC-\([0-9]*\).*/\1/"` | 14 | PID=`echo "$line" | sed -e "s/.*$SRVC-\([0-9]*\).*/\1/"` |
15 | echo "$SRVC $PID => $PEER" | 15 | echo "$SRVC $PID => $PEER" |
16 | 16 | ||
17 | SED_EXPR="${SED_EXPR}s/$SRVC-\([a-z2]*\)-$PID/$SRVC \1 $PEER/;" | 17 | SED_EXPR="${SED_EXPR}s/$SRVC-\([a-z2]*\)-$PID/$SRVC \1 $PEER/;" |