cm0002@lemmy.world to Programmer Humor@programming.dev · 5 days agoLike programming in bashlemmy.mlimagemessage-square187fedilinkarrow-up11.64Karrow-down116cross-posted to: [email protected]
arrow-up11.62Karrow-down1imageLike programming in bashlemmy.mlcm0002@lemmy.world to Programmer Humor@programming.dev · 5 days agomessage-square187fedilinkcross-posted to: [email protected]
minus-squarepelya@lemmy.worldlinkfedilinkarrow-up4·4 days agoNope, the whole ${variable/regex/replacement} syntax
minus-squareSpaceNoodle@lemmy.worldlinkfedilinkarrow-up9arrow-down1·4 days agoAll the string manipulation functions are easy: https://tldp.org/LDP/abs/html/string-manipulation.html
minus-squaresynae[he/him]@lemmy.sdf.orglinkfedilinkEnglisharrow-up11·4 days agoThis one is my bookmark https://tldp.org/LDP/abs/html/parameter-substitution.html
minus-squarescaredoftrumpwinning@lemmy.worldlinkfedilinkarrow-up3·4 days agoEvery time I have to do this I always go here. I can never remember the prefix suffix parts next time I do parameter substitution.
Nope, the whole
${variable/regex/replacement}
syntaxAll the string manipulation functions are easy: https://tldp.org/LDP/abs/html/string-manipulation.html
This one is my bookmark
https://tldp.org/LDP/abs/html/parameter-substitution.html
Every time I have to do this I always go here. I can never remember the prefix suffix parts next time I do parameter substitution.