#/bin/sh month=$(date '+%m') year=$(date '+%Y') # # Cluster # # Download the websites index HTML file wget -O /sdf/arpa/ns/s/scm/index.html https://scm.sdf.org # Download the websites posts HTML file wget -O /sdf/arpa/ns/s/scm/$month.html https://scm.sdf.org/posts/$year/$month.html # Convert the index HTML file to an index text file html2text -o /sdf/arpa/ns/s/scm/index -ascii -style pretty /sdf/arpa/ns/s/scm/index.html # Convert the posts HTML file to a text file html2text -o /sdf/arpa/ns/s/scm/$month -ascii -style pretty /sdf/arpa/ns/s/scm/$month.html # Write the footer text file from the index text file tail -n 15 /sdf/arpa/ns/s/scm/index > footer # Remove the posts header line from the index HTML file sed -i 's/