| 1 | #!/bin/bash |
| 2 | |
| 3 | # String expansion. |
| 4 | # Introduced with version 2 of Bash. |
| 5 | |
| 6 | # Strings of the form $'xxx' |
| 7 | #+ have the standard escaped characters interpreted. |
| 8 | |
| 9 | echo $'Ringing bell 3 times \a \a \a' |
| 10 | # May only ring once with certain terminals. |
| 11 | # Or ... |
| 12 | # May not ring at all, depending on terminal settings. |
| 13 | echo $'Three form feeds \f \f \f' |
| 14 | echo $'10 newlines \n\n\n\n\n\n\n\n\n\n' |
| 15 | echo $'\102\141\163\150' |
| 16 | # B a s h |
| 17 | # Octal equivalent of characters. |
| 18 | |
| 19 | exit |