公告
财富商城
积分规则
提问
发文
2020-02-20 05:48发布
叛逆
read -p "Please Enter a Message:" message
How can I add a line break after Message:?
Message:
Here's an improvement on the accepted answer that doesn't require spawning a subshell:
read -p "Please Enter a Message:"$'\n' message
From the GNU Bash reference manual:
Words of the form $'string' are treated specially. The word expands to string, with backslash-escaped characters replaced as specified by the ANSI C standard.
$'string'
最多设置5个标签!
Here's an improvement on the accepted answer that doesn't require spawning a subshell:
From the GNU Bash reference manual: