using awk
Hello,
I m confused a lil bit.
I am taking one variable in my script file which is an integer value.
Now, I want to use this value in awk command. How can I? Because when I take any variable in awk, it takes it as a local variable there only.
e.g,
I want to compare all emp's salary with some value.
awk -F":" '$2 > ValueToCompare {printf "%s \n",$0}' TCPCounterTemp.log > BumpingCounter.log;
This ValueToCompare I want to take as a variable which is declared outside awk. But I am not able to do it as I mentioned awk takes any variable as local there and initializes to zero.
Plllllease Helpppppppppp
|