Basic parameter usage
Today we offer . Maybe you like some kiwis? We also have oranges apples bananas. Parameter indirection
A kiwi costs 5 coins. Case modification
The boys name is john, properly written as John. The girl is mary, but I prefer Mary. Substring removal
When working on arrays, expansion will handle each element separately. |
Search and Replace
String and arry length
Caution: The number of elements in an array may not reflect its highest index! Substrings
|
Default values |
Cheatography
https://cheatography.com
Bash parameter expansion Cheat Sheet (DRAFT) by Jenzopr
A core functionality of bash is manipulating parameters or variables. This cheat sheet shows how!
This is a draft cheat sheet. It is a work in progress and is not finished yet.