Skip to main content
corrected a piece of code
Source Link
rahul
  • 1.2k
  • 9
  • 20

You can also use indirect variable expansion

$fpath=`echo $resource`$resource/operation`
echo ${!fpath}

This will expand the value of resource inside fpath.

You can also use indirect variable expansion

$fpath=`echo $resource`
echo ${!fpath}

This will expand the value of resource inside fpath.

You can also use indirect variable expansion

$fpath=`echo $resource/operation`
echo ${!fpath}

This will expand the value of resource inside fpath.

Source Link
rahul
  • 1.2k
  • 9
  • 20

You can also use indirect variable expansion

$fpath=`echo $resource`
echo ${!fpath}

This will expand the value of resource inside fpath.