#!/bin/bash t1='myt1' t2='myt2' #普通输出 echo '"'${t1}: {${t2}}: sss'"' echo '**********************************************' echo '"'{${t1}: {${t2}} sss: eee}'"' echo '**********************************************' echo '"'{${t1}: {${t2}}, sss: eee, ${t2}: ${t1}}'"' echo '**********************************************' echo -e '"'{${t1}: {${t2}},'\n'sss: eee,'\n'${t2}: ${t1}}'"' echo '**********************************************' echo ''$t1: $t2'' echo '**********************************************' echo "$t1: $t2"