Execution of awk command in a variable

Hi All,

I have a awk command that is stored in a variable.

the value of the variable cmd is:
(mean output of echo $cmd is: )

awk -F";" '{print $1}'

Now I want to execute this command.

How can I do that????

Quick Reply will be appreciated.

Regards,
Amit

try

eval $variable

You are Great!

Its Working!