From 39ec8c39c4ee2bbbe0bf0ae9709c7a533463511f Mon Sep 17 00:00:00 2001 From: dozens Date: Thu, 16 Nov 2023 15:07:34 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=9B=A0=EF=B8=8F=20exec?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit acdw tipped me off to `exec > FILE` which redirects all output to that file so you don't have to pipe and append so carefully all the time. thanks acdw!! --- justfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/justfile b/justfile index acebe82..1f7af88 100644 --- a/justfile +++ b/justfile @@ -26,12 +26,13 @@ html: # build rss rss: #!/usr/bin/env sh - echo "list blog" > www/feed.xml - echo "http://tilde.town/~dozens/listblog/index.htmla blog that is just a bunch of lists" >> www/feed.xml + exec > www/feed.xml + echo "list blog" + echo "http://tilde.town/~dozens/listblog/index.htmla blog that is just a bunch of lists" for f in `ls src/*.md`; do - ed -s $f < commands.ed | recfmt -f templates/template.recfmt | m4 >> www/feed.xml + ed -s $f < commands.ed | recfmt -f templates/template.recfmt | m4 done - echo '' >> www/feed.xml + echo '' # make html and rss build: index html rss