@[email protected] to Programmer [email protected] • 1 month agoLike programming in bashlemmy.mlimagemessage-square185fedilinkarrow-up11.68Kcross-posted to: [email protected]
arrow-up11.68KimageLike programming in bashlemmy.ml@[email protected] to Programmer [email protected] • 1 month agomessage-square185fedilinkcross-posted to: [email protected]
minus-square@[email protected]linkfedilink9•1 month agoAll the string manipulation functions are easy: https://tldp.org/LDP/abs/html/string-manipulation.html
minus-squaresynae[he/him]linkfedilinkEnglish11•1 month agoThis one is my bookmark https://tldp.org/LDP/abs/html/parameter-substitution.html
minus-square@[email protected]linkfedilink3•1 month 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.