tree -H http://abc.123 /var/www > test.html
牛人millenniumdark 那里看到了加强版
http://forum.ubuntu.org.cn//weblog_entry.php?e=5342
代码:
#!/bin/sh
# /usr/local/bin/wsi
tree -H http://weakish.int.eu.org /var/www/ \
| sed -n ‘/<a href="http:/,/<br><br>/p’ \
| sed -e ‘s/<br><br>/<\/pre>/g’ \
| sed -e ‘s/<br>\t\t\t\t//g’ \
| sed -e ‘s/<p><a/<pre><a/g’ \
> siteindex.txt
good thanks
you're welcome 🙂