eval用法

[root@testlogs]#cata.cfg

#!/bin/bash

username=oracle

oracle_1=aa

oracle_2=bb

oracle_3=cc

[root@testlogs]#cata.sh

#!/bin/bash

../a.cfg

typesetname=oracle

foriin`echo"123"`

do

evaldbname='$'${name}_${i}

echo$dbname

done