2001-07-10 14:25:50 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# String expansion.
|
2001-09-04 13:27:31 +00:00
|
|
|
# Introduced with version 2 of Bash.
|
2001-07-10 14:25:50 +00:00
|
|
|
|
2003-11-03 16:25:16 +00:00
|
|
|
# Strings of the form $'xxx'
|
|
|
|
#+ have the standard escaped characters interpreted.
|
2001-07-10 14:25:50 +00:00
|
|
|
|
|
|
|
echo $'Ringing bell 3 times \a \a \a'
|
2003-11-03 16:25:16 +00:00
|
|
|
# May only ring once with certain terminals.
|
2008-07-20 23:16:47 +00:00
|
|
|
# Or ...
|
|
|
|
# May not ring at all, depending on terminal settings.
|
2001-07-10 14:25:50 +00:00
|
|
|
echo $'Three form feeds \f \f \f'
|
|
|
|
echo $'10 newlines \n\n\n\n\n\n\n\n\n\n'
|
2008-11-23 22:43:47 +00:00
|
|
|
echo $'\102\141\163\150'
|
|
|
|
# B a s h
|
2008-07-20 23:16:47 +00:00
|
|
|
# Octal equivalent of characters.
|
2001-07-10 14:25:50 +00:00
|
|
|
|
2008-07-20 23:16:47 +00:00
|
|
|
exit
|