Horje
eval assignment Code Example
eval assignment
RUN_COST="Y"
RUN_SELLING="N"
RUN_RATIO="Z"

for prm in RUN_COST RUN_SELLING RUN_RATIO
do
     echo $prm
     eval VAR=\$$prm
     echo  "$VAR"
done

Ouyput:
RUN_COST
Y
RUN_SELLING
N
RUN_RATIO
Z
Source: www.unix.com




Shell

Related
docker clean images Code Example docker clean images Code Example
ping command output to null in linux Code Example ping command output to null in linux Code Example
javafx install mac not working Code Example javafx install mac not working Code Example
git bisect automated Code Example git bisect automated Code Example
command to upgrade broken/not upgraded packages on Ubuntu Code Example command to upgrade broken/not upgraded packages on Ubuntu Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
11