X-Git-Url: https://hackdaworld.org/gitweb/?p=lectures%2Fdfb-slides.git;a=blobdiff_plain;f=cont2xml;h=2323536355437003cf94592514c089e41d640240;hp=dac9a5183a7f3f210ab8c83eee4bd1eb8059980a;hb=5f12223b9a9a479085647770c25f83c1b677a17e;hpb=18fd8d3d8ffd005126930083e669f67d5d3bc5df diff --git a/cont2xml b/cont2xml index dac9a51..2323536 100755 --- a/cont2xml +++ b/cont2xml @@ -85,15 +85,18 @@ while [ "1" ]; do
`grep ^${count} $srcfile`
- - EOF -# total_2 # hunz's 1337.pl inserts content here ;) +# ./1337.pl $@ $count ($1 is targetfile, $2 is sourcefile) + + +cat >> $trgfile << EOF + -[ "$count" = "$total" ] && break +EOF + [ "$count" = "$total" ] && break done