[an error occurred while processing this directive]

Пример использования eval и разбор параметров на Shell
control_param="test1 test2"

num_test1="123"
num_test2="456"

for cur_item in $control_param; do
   eval num_val=\$num_$cur_item
done
 
01.07.2003
Ключи: shell / Лицензия: CC-BY
Раздел:    Корень / Программисту и web-разработчику / Shell / Готовые скрипты

[an error occurred while processing this directive]

[an error occurred while processing this directive]