[[email protected] ~]# a=123
[[email protected] ~]# echo "1" | sed ‘s/1/"‘$a‘"/‘
"123"
[[email protected] ~]# echo "1" | sed ‘s/1/‘$a‘/‘
123
[[email protected] ~]# awk ‘BEGIN{print ‘$a‘}‘
123
[[email protected] ~]# awk ‘BEGIN{print ‘"$a"‘}‘
123
时间: 2024-10-26 17:11:44