From 2e6f1d4d505c09437c93f5242a3357e20dabe9bb Mon Sep 17 00:00:00 2001 From: "Scott C. MacCallum" Date: Wed, 22 Feb 2023 13:20:05 +0000 Subject: [PATCH] Header line increase --- cluster-web-to-other.ksh | 26 +++++++------------------- 1 file changed, 7 insertions(+), 19 deletions(-) diff --git a/cluster-web-to-other.ksh b/cluster-web-to-other.ksh index 4cd748b..c178ec0 100755 --- a/cluster-web-to-other.ksh +++ b/cluster-web-to-other.ksh @@ -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