from bash manual page, `Quoting' section: Words of the form $'string' are treated specially. The word expands to string, with backslash-escaped characters replaced as specifed by the ANSI C standard. Backslash escape sequences, if present, are decoded as follows: \a alert (bell) \b backspace \e an escape character \f form feed \n new line \r carriage retur
【在 N*********r 的大作中提到】 : from bash manual page, `Quoting' section: : Words of the form $'string' are treated specially. The word expands to : string, with backslash-escaped characters replaced as specifed by the : ANSI C standard. Backslash escape sequences, if present, are decoded : as follows: : \a alert (bell) : \b backspace : \e an escape character : \f form feed : \n new line