buddylistgrapher
changeset 6:e34b27b544b5
completed sed variant
author | meillo@marmaro.de |
---|---|
date | Sat, 09 Jun 2007 00:05:36 +0200 |
parents | 2f455fc82355 |
children | ccd2ab1bc9fd |
files | graph3.sh |
diffstat | 1 files changed, 7 insertions(+), 4 deletions(-) [+] |
line diff
1.1 --- a/graph3.sh Mon May 28 23:10:54 2007 +0200 1.2 +++ b/graph3.sh Sat Jun 09 00:05:36 2007 +0200 1.3 @@ -45,11 +45,12 @@ 1.4 # TODO: fetch only edges for people having a profile 1.5 1.6 # output 1.7 - echo "digraph G {" 1.8 1.9 sed -n -e ' 1.10 /^Profil/{ 1.11 - s/Profil von: \(.\+\)/"\1"/ 1.12 + s/Profil von: \(.\+\)/"\1";/ 1.13 + w /tmp/aa 1.14 + s/;$// 1.15 h 1.16 #p 1.17 } 1.18 @@ -62,11 +63,13 @@ 1.19 s/"\(.\+\)" "\(.\+\)"/ "\2" -> "\1";/ 1.20 1.21 # write out 1.22 - p 1.23 + #p 1.24 + w /tmp/bb 1.25 } 1.26 ' $1 1.27 1.28 - 1.29 + echo "digraph G {" 1.30 + grep -f /tmp/aa /tmp/bb 1.31 echo "}" 1.32 1.33 # rm $file $file2