case $# in
1) echo 'Il faut deux arguments: le nom de la commande et le nombre de sections' 
   exit 0;;
2) ;;
*) echo 'Il ne faut que deux arguments!!' ; exit 0;;
esac 

no=1

echo "<html>" > $1.html
echo "<head>" >> $1.html
echo "<Title>BDA: The command $1 </title>" >> $1.html
echo "</head>" >> $1.html
echo ' ' >> $1.html
echo "<body>" >> $1.html
echo "<h1> The Command  $1 </h1>" >> $1.html
echo ' ' >> $1.html
echo "The command <code> $1 </code>" >> $1.html
echo ' ' >> $1.html
echo "The various possibilities offered by the command <code> $1 </code> are:<p>" >> $1.html
echo ' ' >> $1.html
zex ../emploi/$1_eng.emp | awkhref $1 >> $1.html
echo ' ' >> $1.html
echo "</body>" >> $1.html
echo "</html>" >> $1.html

upd -f $1.html
echo $1.html cree

until test $no -gt $2
do
zex ../emploi/$1_eng.emp | awkemp $no | sed 's/AA//'| sed 's/^ *//' |\
awkemp2html $1 > $1_$no.html
upd -f $1_$no.html
echo $1_$no.html cree
no=`expr $no + 1`
 done
