Want to learn Bash String and Arithmetic Expansion in a real environment?
Click below, get a fresh Linux box with Bash ready to go, and work through String and Arithmetic Expansion hands-on with an AI tutor that knows your code.
Start this lessonString and Arithmetic ExpansionWhat you'll learn
- ${var#prefix}
- ${var%suffix}
- ${var//old/new}
- $(( arith ))
- Printf formatting
