format

Bash Fixed printf format strings

Treats message as a string argument rather than a format. Protects percent signs and backslashes from format interpretation.

Formal Syntax & Structure

bash syntaxbash
printf '%s\n' "$message"

Return Value

behavior

See the syntax and description for shell interpretation or output.

Working Example

Example Snippetbash
message='Progress: 50%\n'printf '%s\n' "$message"
Bash Reference