title-case rss feed

This commit is contained in:
James Tomasino 2018-04-20 20:29:19 -04:00
parent 6d29f54f93
commit 2acf982073
1 changed files with 0 additions and 1 deletions

1
burrow
View File

@ -450,7 +450,6 @@ make_rss () {
filename="$(printf "%s" "$f" | sed "s|${config_dir_gopher}${config_dir_phlog}/||")"
date="$(printf "%s" "$filename" | sed 's|^\./||' | awk 'BEGIN { FS="-" } { print $1; }')"
title="$(printf "%s" "$filename" | awk 'BEGIN { FS="-" } { $1=""; print $0; }' | sed "s|/gophermap||" | sed 's/^\ //' | awk '{for(i=1;i<=NF;i++){ $i=toupper(substr($i,1,1)) substr($i,2) }}1')"
{
printf "<item>\\n"
printf " <title>%s</title>\\n" "$title"