Files
w3m/Bonus/htmldump
2011-05-04 16:05:14 +09:00

13 lines
198 B
Bash
Executable File

#!/bin/sh
OPT=
if [ $# -gt 0 -a $1 = "-u" ]; then
OPT=-u
shift
fi
if [ $# = 0 ]; then
URL=$WWW_HOME
else
URL=$1
fi
w3m -dump_source $URL | makeref $OPT -url $URL | w3m -dump -F -T text/html