diff --git a/cluster-web-to-other.sh b/cluster-web-to-other.sh index 057e78c..b75e072 100755 --- a/cluster-web-to-other.sh +++ b/cluster-web-to-other.sh @@ -1,91 +1,117 @@ -#/bin/sh +#/bin/bash month=$(date '+%m') year=$(date '+%Y') # -# Cluster +# Finger # -# 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/