# HG changeset patch # User meillo@marmaro.de # Date 1181340336 -7200 # Node ID e34b27b544b5896806eff74fbbcba16e584fc1e3 # Parent 2f455fc82355e7617ece34c2dc775306f9794010 completed sed variant diff -r 2f455fc82355 -r e34b27b544b5 graph3.sh --- a/graph3.sh Mon May 28 23:10:54 2007 +0200 +++ b/graph3.sh Sat Jun 09 00:05:36 2007 +0200 @@ -45,11 +45,12 @@ # TODO: fetch only edges for people having a profile # output - echo "digraph G {" sed -n -e ' /^Profil/{ - s/Profil von: \(.\+\)/"\1"/ + s/Profil von: \(.\+\)/"\1";/ + w /tmp/aa + s/;$// h #p } @@ -62,11 +63,13 @@ s/"\(.\+\)" "\(.\+\)"/ "\2" -> "\1";/ # write out - p + #p + w /tmp/bb } ' $1 - + echo "digraph G {" + grep -f /tmp/aa /tmp/bb echo "}" # rm $file $file2