Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
seven="( . 1 . 1 . 1)" octal="zero one two three four five six seven" for n in $octal do echo $n done
これが 7 になると、「seven」とエコーします。( . 1 . 1 . 1)の文字列であるエコーを取得するにはどうすればよいです$sevenか?
( . 1 . 1 . 1)
$seven
seven="( . 1 . 1 . 1)" octal="zero one two three four five six seven" for n in $octal do echo "${!n:-$n}" done