by ComputerGuru · 13y ago · 0 comments
Simple example:
for f in `ls *.php`; do wget http://myexample.com/$f -O $f.html; done;
rename 's/\.php\.html/.html/' *
sed -i 's/\.php/.html/g' *.htmlSample...
http://sohcahtoa.org.uk/pages/publish-a-web-site-with-bash-s...
it is horrid, but it works for me.
Seriously, how about a voting option for something like 'homebrew'?
When I need a 'static' site I just use whichever CMS/framework is best and wget --mirror the output.