From: hackbard Date: Fri, 28 Feb 2003 15:35:26 +0000 (+0000) Subject: fixed xml creator script X-Git-Url: https://hackdaworld.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=32e45e477684c222ee7162dae1cc0e0cb52b8b9b;p=lectures%2Fdfb-slides.git fixed xml creator script --- diff --git a/create-xml b/create-xml index 753308e..529c180 100755 --- a/create-xml +++ b/create-xml @@ -59,11 +59,7 @@ while [ "1" ]; do $kapitel EOF - for up in `grep ^${count} $file | awk -F^ '{ for(i=3;i<=NF;i++) print $i }'`; do - cat >> $name << EOF - $up -EOF - done + grep ^${count} $file | awk -F^ '{ for(i=3;i<=NF;i++) print " "$i"" }' >> $name cat >> $name << EOF EOF @@ -88,17 +84,13 @@ while [ "1" ]; do EOF ((j = 0)) - for up in `grep ^${count} $file | awk -F^ '{ for(i=3;i<=NF;i++) print $i }'`; do - cat >> $name << EOF - $up - - muster - muster - muster - muster - -EOF - done + grep ^${count} $file | awk -F^ '{ for(i=3;i<=NF;i++) print " " $i " \ + \ + muster \ + muster \ + muster \ + muster \ + " }' >> $name cat >> $name << EOF EOF