From 3e16f29e0670856ba63f87b409e228d4e05557f8 Mon Sep 17 00:00:00 2001 From: MatthewOwens Date: Tue, 21 Jul 2020 17:46:50 +0100 Subject: [PATCH] replacing hyphens with spaces in post names --- scripts/posts.awk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) } -- 2.20.1