#!/bin/sh -e
#
# usage: html2txt file.html > file.txt
# dependencies: lynx

if [ "$#" -gt 0 ]; then
  cat "$@" | exec lynx -force_html -stdin -dump -nolist
else
  exec lynx -force_html -stdin -dump -nolist
fi
