#!/bin/sh processline() { echo "- $1 -" name="$1" anchors="" title="" stylesheet="../style/xaoshelp.css" shift while [ "$1" != "" ] ; do if [ "$1" != "$name" ] ; then anchors="$anchors " fi shift done if [ "$name" == "main" ]; then title='' stylesheet="style/xaoshelp.css" fi # I changed "0" to "$" because my sed # doesn't want to understand "0". # -- Zoltan cat xaos.hlp | sed '/%'"$name"'/H' | sed '1,/%'"$name"'/d;/^%/,$ d' | sed \ '1,3s_
\([^<]*\)_\ \ \ \_g
s_
__g
s_