#! /bin/sh # Wrap a plain text file in HTML. Assume tabs based on 8 chars. # Input: $1 Output: .texthtml/$1.html # dnw 20Aug02 echo ""$1"" >.texthtml/$1.html echo "
" >>.texthtml/$1.html
expand -8 $1 | \
  sed -e 's/\&/\&/g' -e 's//\>/g' >>.texthtml/$1.html
echo "" >>.texthtml/$1.html