home | list info | list archive | date index | thread index

Re: [OCLUG-Tech] bash question

Hi Jeremy,

Interesting subject. I think you can do it with eval(), the following
script will print "Linux":

#!/bin/bash

BOO="var_name"
eval "$BOO=Linux"
echo $var_name

exit 0

Cheers

-- 
Alexandre de Abreu
GCUX, RHCE, LPIC-2

references

message navigation