Ravi Sir's Cards › AWS
Parameter expansion
This revision card explains Parameter expansion. It starts from the need that default if empty. It describes length. The how-to section notes cut suffix. An example on the card is replace.
Read card text
What this card says
Why do we need it?
Default if empty.
${env:-dev}
What is it?
Length.
${#name}
How to do it
Cut suffix.
${file%.log}
Example
Replace.
${s//a/b}