シングルクォーテーションのほうが強めに特殊文字を文字化する
~ % name=shogo
~ % echo "My name is $name"
My name is shogo
~ % echo 'My name is $name'
My name is $name
More than 5 years have passed since last update.
シングルクォーテーションのほうが強めに特殊文字を文字化する
~ % name=shogo
~ % echo "My name is $name"
My name is shogo
~ % echo 'My name is $name'
My name is $name
Register as a new user and use Qiita more conveniently