What is Nostr?
Justine Smithies /
npub1w65…6kyw
2024-11-06 17:59:15

Justine Smithies on Nostr: I'm needing some #FreeBSD 14.1 sed assistance as my blarg blog script is now failing ...

I'm needing some #FreeBSD 14.1 sed assistance as my blarg blog script is now failing under FreeBSD.
When this line runs:

echo "$filename" | sed -r 's|\w+/(.*).md|build/\1.html|'

I get this error:

sed: 1: "s|\w+(.*).md|build/\1.h ...": RE error: trailing backslash (\)

I tried removing the \ before the w and the error goes away but the sed line doesn't do anything then ?
It is supposed to change any .md file paths into build/*.html
For example if it gets posts/my-first-freebsd-server.md it should output build/my-first-freebsd-server.html
This worked on #ChimeraLinux and #VoidLinux

I have noticed this but not sure if it's relevant ????
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=253893#c11

Any ideas please and thank you ? ❤️
Author Public Key
npub1w65rptwmg7gr50yqjdmje49s8kfk4e95hwqgzr2zqpfynjzt29lq0z6kyw