Evaluating a variable within a variable

2007-10-23 Thread TimtheEagle
Hi, my problem is best desrbied with a simple example as follows. I know that technically it is not correct but it illustrates what I am struggling to achieve. # main_auth=7 f=main t=auth ile=$f"_"$t echo $ile I want the output from echo on the line above to be 7. The m

Passing variables to awk

2007-11-01 Thread TimtheEagle
Hi all, having created a complicated (for me) awk statement previously with the forums' help I am now amending it and trying to pass variables to it. My script is as follows with the respective outputs (hash then unhash when running etc) for:- 1. variable var1 passed containing Framed-IP-Address