alias_qr_rainmaker@lemmy.world to linuxmemes@lemmy.world · 5 months agoEven better than the originallemmy.worldimagemessage-square6linkfedilinkarrow-up153arrow-down14
arrow-up149arrow-down1imageEven better than the originallemmy.worldalias_qr_rainmaker@lemmy.world to linuxmemes@lemmy.world · 5 months agomessage-square6linkfedilink
minus-squareBadabinski@kbin.earthlinkfedilinkarrow-up6·5 months agono pipe necessary, just sed -E 's/TH|[EL ]|DO//g' <<<"$line"
minus-squarea_non_monotonic_function@lemmy.worldlinkfedilinkarrow-up2arrow-down1·5 months agoI think I find the pipe faster to parse.
minus-squareBadabinski@kbin.earthlinkfedilinkarrow-up1·5 months agoidk who downvoted you, it’s a very common sentiment. I advocate for <<<, but a pipe is often fine when performance doesn’t matter.
minus-squarea_non_monotonic_function@lemmy.worldlinkfedilinkarrow-up2·5 months agoPerformance doesn’t really matter with any of my scripts. They’re mostly for personal use. And the even funnier thing is getting downvoted for a style preference. XD
no pipe necessary, just
sed -E 's/TH|[EL ]|DO//g' <<<"$line"I think I find the pipe faster to parse.
idk who downvoted you, it’s a very common sentiment. I advocate for
<<<, but a pipe is often fine when performance doesn’t matter.Performance doesn’t really matter with any of my scripts. They’re mostly for personal use.
And the even funnier thing is getting downvoted for a style preference. XD