Changes to Sed

This commit is contained in:
Scott C. MacCallum 2023-02-17 01:47:37 +00:00
parent 44310cc398
commit d74dca4fe3

View File

@ -17,9 +17,9 @@ wget -O /sdf/arpa/ns/s/scm/$month.html https://scm.sdf.org/posts/$year/$month.ht
# Remove the post related lines from the index HTML file
sed -i 's:<h3>Posts<\/h3>::' /sdf/arpa/ns/s/scm/index.html
sed -i 's/<h3>Posts<\/h3>//' /sdf/arpa/ns/s/scm/index.html
sed -i 's:<h4><a href="https\:\/\/scm.sdf.org\/posts\/2023\/02.html">2023<\/a><\/h4>::' /sdf/arpa/ns/s/scm/index.html
sed -i 's/<h4><a href="https\:\/\/scm.sdf.org\/posts\/2023\/02.html">2023<\/a><\/h4>//' /sdf/arpa/ns/s/scm/index.html
# Convert the index HTML file to an index text file