alias_qr_rainmaker@lemmy.world to linuxmemes@lemmy.world · 1 day agoEven better than the originallemmy.worldimagemessage-square12fedilinkarrow-up189arrow-down13
arrow-up186arrow-down1imageEven better than the originallemmy.worldalias_qr_rainmaker@lemmy.world to linuxmemes@lemmy.world · 1 day agomessage-square12fedilink
minus-squareBadabinski@kbin.earthlinkfedilinkarrow-up2·18 hours agoI was waiting for someone to come along with this response lmao I’m terrible at remembering shell string operation syntax, but this is the ultimate answer.
minus-squaresik0fewl@lemmy.calinkfedilinkarrow-up2arrow-down1·15 hours agoDefinitely not the ultimate, since it’s not POSIX, but still a nice tidbit.
minus-squareBadabinski@kbin.earthlinkfedilinkarrow-up3·15 hours agoIdk, writing POSIX-compliant shell is so miserable that I avoid doing it when I can. You can use Bash on BSD and all other unixes, so it’s still a relatively portable solution.
minus-squaresik0fewl@lemmy.calinkfedilinkarrow-up2arrow-down1·15 hours agoTrue enough, but it’s pretty much the same to use sed, unless you need those milliseconds of performance boost.
I was waiting for someone to come along with this response lmao
I’m terrible at remembering shell string operation syntax, but this is the ultimate answer.
Definitely not the ultimate, since it’s not POSIX, but still a nice tidbit.
Idk, writing POSIX-compliant shell is so miserable that I avoid doing it when I can. You can use Bash on BSD and all other unixes, so it’s still a relatively portable solution.
True enough, but it’s pretty much the same to use sed, unless you need those milliseconds of performance boost.