+
+
+((count = 0))
+while [ "1" ]; do
+ ((count += 1))
+ kapitel=`grep ^${count} $file | awk -F^ '{ print $2 }'`
+ cat >> $name << EOF
+
+ <slide>
+ <header size="10"></header>
+ <header fgcolor="#8080FF" size="35">$kapitel</header>
+ <header size="20"></header>
+
+EOF
+ ((j = 0))
+ grep ^${count} $file | awk -F^ '{ for(i=3;i<=NF;i++) print " <text size=\"20\">" $i "</text> \
+ <text/> \
+ <listitem size=\"20\">muster</listitem> \
+ <listitem size=\"20\">muster</listitem> \
+ <listitem size=\"20\">muster</listitem> \
+ <listitem size=\"20\">muster</listitem> \
+ <text/>" }' >> $name
+ cat >> $name << EOF
+ </slide>
+EOF
+ [ "$count" = "$total" ] && break