X-Git-Url: https://hackdaworld.org/gitweb/?p=lectures%2Fdfb-slides.git;a=blobdiff_plain;f=create-xml;h=81990e1c685081ae9691e9365a6db327994158cd;hp=753308ed2ba665829abf7a0a70a135db74722d8f;hb=dcfe13a60d4b22e8d1da061da18e5a2e42687c82;hpb=fddc5a5684d06c92e99d086d8b1cb9c9fdc2186d diff --git a/create-xml b/create-xml index 753308e..81990e1 100755 --- a/create-xml +++ b/create-xml @@ -20,7 +20,7 @@ cat > $name << EOF @@ -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