cm0002@lemmy.world to Programmer Humor@programming.dev · 2 months agoLike programming in bashlemmy.mlexternal-linkmessage-square166fedilinkarrow-up11arrow-down10cross-posted to: programmerhumor@lemmy.ml
arrow-up11arrow-down1external-linkLike programming in bashlemmy.mlcm0002@lemmy.world to Programmer Humor@programming.dev · 2 months agomessage-square166fedilinkcross-posted to: programmerhumor@lemmy.ml
minus-squarepelya@lemmy.worldlinkfedilinkarrow-up0·2 months agoNope, the whole ${variable/regex/replacement} syntax
minus-squareSpaceNoodle@lemmy.worldlinkfedilinkarrow-up0·2 months agoAll the string manipulation functions are easy: https://tldp.org/LDP/abs/html/string-manipulation.html
minus-squaresynae[he/him]@lemmy.sdf.orglinkfedilinkEnglisharrow-up0·2 months agoThis one is my bookmark https://tldp.org/LDP/abs/html/parameter-substitution.html
minus-squarescaredoftrumpwinning@lemmy.worldlinkfedilinkarrow-up0·2 months 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.