From c1e066bdf25672b5573f400b0f438c2248da9003 Mon Sep 17 00:00:00 2001 From: Alex Hayes <76755531+ahayesgithub@users.noreply.github.com> Date: Tue, 29 Aug 2023 16:27:20 -0500 Subject: [PATCH] Added counting of files to tree diagram construction (#42) --- docs/_data/list_S3.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/_data/list_S3.sh b/docs/_data/list_S3.sh index 9f4b813d..3146f76d 100644 --- a/docs/_data/list_S3.sh +++ b/docs/_data/list_S3.sh @@ -9,7 +9,7 @@ while IFS= read -r object; do mkdir -p ./docs/LOG/"${name_only}" touch ./docs/LOG/"${name_only}"index.md echo '```' > ./docs/LOG/"${name_only}"index.md - mc tree S3/eictest/EPIC/LOG/"${name_only}" >> ./docs/LOG/"${name_only}"index.md + mc tree --files S3/eictest/EPIC/LOG/"${name_only}" | sed 's/.*\.root$//g' | uniq -c | sed 's/.*1 //' >> ./docs/LOG/"${name_only}"index.md # contructs tree diagram with count of files in each directory echo '```' >> ./docs/LOG/"${name_only}"index.md echo -e "- text: "$name_only"\n url: "/epic-prod/LOG/$name_only"" done <<< "$OBJECTS"