@cm0002 to Programmer [email protected] • 2 days agoLike programming in bashlemmy.mlimagemessage-square184arrow-up11.57Karrow-down116cross-posted to: [email protected]
arrow-up11.56Karrow-down1imageLike programming in bashlemmy.ml@cm0002 to Programmer [email protected] • 2 days agomessage-square184cross-posted to: [email protected]
minus-square@SpaceNoodlelink8•2 days agoAll the string manipulation functions are easy: https://tldp.org/LDP/abs/html/string-manipulation.html
minus-squaresynae[he/him]linkfedilinkEnglish11•2 days agoThis one is my bookmark https://tldp.org/LDP/abs/html/parameter-substitution.html
minus-square@scaredoftrumpwinninglink3•1 day 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.