hi, I've a c-shell script, in which i've a variable "ydate" which has a value 20021106. And I want to use this variable in a awk statement as below,
awk -F_ '{if ($1 ~ /xyz/ && $2 > $ydate) print $0}' ./tmp1 > ./tmp2
but it doesnt take the value of "ydate".. it works well when i hardcode that value without using the variable... can you pls help me get out of this...
awk -F_ '{if ($1 ~ /xyz/ && $2 > $ydate) print $0}' ./tmp1 > ./tmp2
but it doesnt take the value of "ydate".. it works well when i hardcode that value without using the variable... can you pls help me get out of this...