Header line increase

This commit is contained in:
Scott C. MacCallum 2023-02-22 13:20:05 +00:00
parent ae7e730dfb
commit 2e6f1d4d50

View File

@ -40,16 +40,12 @@ sed -i '1d;2d;3d' /sdf/arpa/ns/s/scm/index
sed -i '1d;2d;3d' /sdf/arpa/ns/s/scm/$month
# Write the index text file to the .plan text file
#cat /sdf/arpa/ns/s/scm/index > /sdf/arpa/ns/s/scm/.plan
# Write the posts text file to the .plan cluster text file
# Researching how best to do this yeilded a lot of interesing results. After
# some thinking, I decided this was the best way, as it's readable and I
# think will be easy to modify as needed
# some thinking, I decided this was the best way, as it's readable and will
# be easy to modify as needed
head -n 9 index > /sdf/arpa/ns/s/scm/header
head -n 10 index > /sdf/arpa/ns/s/scm/header
cat /sdf/arpa/ns/s/scm/$month > body
@ -75,23 +71,15 @@ chmod -R 754 /ftp/pub/users/scm
# Meta Array
#
# Remove all control characters from the index text file and write it to the index MA text file
cat /sdf/arpa/ns/s/scm/.plan | col -b -x > /sdf/arpa/ns/s/scm/.plan.ma
scp /sdf/arpa/ns/s/scm/.plan.ma scm@ma.sdf.org:/meta/s/scm/.plan
cat /sdf/arpa/ns/s/scm/index | col -b -x > /sdf/arpa/ns/s/scm/index.ma
# Remove all the control characters from the posts text file and write it to the MA text file
cat /sdf/arpa/ns/s/scm/$month | col -b -x > /sdf/arpa/ns/s/scm/$month.ma
# Write the MA index text file to the .plan text file
scp /sdf/arpa/ns/s/scm/index.ma scm@ma.sdf.org:/meta/s/scm/.plan
# Write the MA index text file to the Gemini index text file
scp /sdf/arpa/ns/s/scm/index.ma scm@ma.sdf.org:/meta/gemini/scm/index.gmi
# Write the MA posts text file to the Gemini posts text file
cat /sdf/arpa/ns/s/scm/$month | col -b -x > /sdf/arpa/ns/s/scm/$month.ma
scp /sdf/arpa/ns/s/scm/$month.ma scm@ma.sdf.org:/meta/gemini/scm/posts/$year/$month.gmi