Introduction
Introduction Statistics Contact Development Disclaimer Help
tuse awk(1) for portable capitalization of meme categories - bitreich-tv - meme…
git clone git://src.adamsgaard.dk/bitreich-tv
Log
Files
Refs
LICENSE
---
commit 188cae28ca192c54fbd41251a2044c66933f5820
parent 6ea779cd49ae35df505f0beeb377f84194ec17f1
Author: Anders Damsgaard <[email protected]>
Date: Tue, 3 Nov 2020 11:49:19 +0100
use awk(1) for portable capitalization of meme categories
Diffstat:
M brtv-generate-gopher-index.sh | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/brtv-generate-gopher-index.sh b/brtv-generate-gopher-index.sh
t@@ -38,7 +38,8 @@ for f in *.m3u; do
all.m3u|news.m3u) continue;;
esac
printf '[9|%s Memes|/tv/%s|server|port]\n' \
- "$(printf '%s' "${f%.m3u}" | sed 's/^./\u&/')" "$f"
+ "$(printf '%s' "${f%.m3u}" | \
+ awk '{print toupper(substr($1,1,1)) substr($1,2)}')" "$f"
done
cat <<__EOF__
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.