Avatar
Justine Smithies
76a830addb47903a3c8093772cd4b03d936ae4b4bb80810d42005249c84b517e
Friend, Lover, Sister, Mother & Wife Loves cooking Linux, BSD chick Mobiles: #Fairphone4 #OnePlus6T #OnePlus6 #PinePhonePro Watch PineTime Hand wired #Pico #QMK #Keyboard Daily drivers: #ThinkPad P14s Gen 1 AMD - #OpenBSD with #BSPWM and #Polybar as my bar. Dell Optiplex 3080 Tower - #OpenBSD with #HerbstluftWM and #Polybar Editor: #Vim HomeLab: #FreeBSD

As if my brain isn't going off in enough tangents, now I'm really considering switching my oksh interactive shell from #Emacs to #Vi mode. Should I be going down this rabbit hole ? FYI I am a #Vim , #Neovim user but to do this I'm my terminal. I must be mad. 😜

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 ? ❤️