<text size="20">$kapitel</text>
<text/>
EOF
- for up in `grep ^${count} $file | awk -F^ '{ for(i=3;i<=NF;i++) print $i }'`; do
- cat >> $name << EOF
- <listitem size="20">$up</listitem>
-EOF
- done
+ grep ^${count} $file | awk -F^ '{ for(i=3;i<=NF;i++) print " <listitem size=\"20\">"$i"</listitem>" }' >> $name
cat >> $name << EOF
<text/>
EOF
EOF
((j = 0))
- for up in `grep ^${count} $file | awk -F^ '{ for(i=3;i<=NF;i++) print $i }'`; do
- cat >> $name << EOF
- <text size="20">$up</text>
- <text/>
- <listitem size="20">muster</listitem>
- <listitem size="20">muster</listitem>
- <listitem size="20">muster</listitem>
- <listitem size="20">muster</listitem>
- <text/>
-EOF
- done
+ 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