From 167a7adcc2c37ad1712935d7f18541f18fe043b6 Mon Sep 17 00:00:00 2001 From: "Scott C. MacCallum" Date: Mon, 20 Feb 2023 03:15:55 +0000 Subject: [PATCH] Fixed finger bug --- cluster-web-to-other.ksh | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/cluster-web-to-other.ksh b/cluster-web-to-other.ksh index a2146e9..a3aaadc 100755 --- a/cluster-web-to-other.ksh +++ b/cluster-web-to-other.ksh @@ -42,9 +42,22 @@ 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 > .plan +#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 + +head -n 5 index > /sdf/arpa/ns/s/scm/header + +cat /sdf/arpa/ns/s/scm/$month > body + +cat /sdf/arpa/ns/s/scm/header > .plan + +cat /sdf/arpa/ns/s/scm/body >> .plan + +cat /sdf/arpa/ns/s/scm/footer >> .plan # Write the index text file to the root Gopher location