0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

ShellScriptの$

Posted at

変数にアクセスする時は変数名の前に$を付けます。または$付けて変数を{}で囲みます。

var="変数1"
var_2="変数2"
echo "var_2=$var_2"

var_2="var_2が変更されました。"
echo ${var_2}

参考サイト

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?