Parameter expansion forms

Besides the simple "$myvar" form of parameter expansion, there are some other forms available for common string operations that can be very useful. Some of these forms are specified by the POSIX shell scripting standard, and others are specific to Bash itself; we will distinguish them with the bash$ prompt for Bash-specific forms, and the single $ prompt for POSIX-specified forms.

Get Bash Quick Start Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.