From: MatthewOwens Date: Tue, 21 Jul 2020 16:46:50 +0000 (+0100) Subject: replacing hyphens with spaces in post names X-Git-Url: https://git.owens.tech/assets/static/dummy.html/assets/static/dummy.html/git?a=commitdiff_plain;h=3e16f29e0670856ba63f87b409e228d4e05557f8;p=website.git replacing hyphens with spaces in post names --- diff --git a/scripts/posts.awk b/scripts/posts.awk index b78d008..4f29e6a 100644 --- a/scripts/posts.awk +++ b/scripts/posts.awk @@ -6,7 +6,8 @@ BEGIN { { file = sprintf("%s-%s-%s-%s", $1, $2, $3, $4) - string = sprintf("%s/%s/%s - %s", $1, $2, $3, $4) + name = gensub(/-/, " ", "g", $4) + string = sprintf("%s/%s/%s - %s", $1, $2, $3, name) printf("\t
%s
\n", file, string) }