Bash echo command not making use of escaped character
问题 The bash echo command isn't using the escaped characters like "\n" and "\t" echo "This is test string\nAnd this is next line" For the above input it displays This is test string\nAnd this is next line So how do I print on the next line? 回答1: You need echo -e if you want escaped characters to be expanded: $ echo -e "This is test string\nAnd this is next line" This is test string And this is next line 回答2: $ echo $'This is test string\nAnd this is next line' This is test string And this is next