/
timaliev
/
bin-scripts
Обзор
Документация
Войти
/
timaliev
/
bin-scripts
Код
Запросы
0
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
develop
indirect_reference.sh
14 строк
314 B
Tim Aliev
Added reference URL
11 мар 2015, 02:40
11 мар 2015, 02:40
a825017
Код
Авторство
О чём код?
#!/bin/sh # Advanced shell scripting from http://tldp.org/LDP/abs/html/abs-guide.html # Indirect variable referencing. # This has a few of the attributes of references in C++. a=letter_of_alphabet letter_of_alphabet=z echo "a = $a" # Direct reference. echo "Now a = ${!a}" # Indirect reference.