Sorry,my english is poor.
I describe my question clearly as soon as possible.
Does anybody know how to use nawk in C shell to search two fields by two variable and print it?
eg.
If I set two variable $m and $d from month and date and they are field two and field three in file.
nawk '$2==/$m/ && $3==/$d {print}' infile
Is the above program right?
If it is wrong ,please help me to correct it.
Thanks a lot.
I describe my question clearly as soon as possible.
Does anybody know how to use nawk in C shell to search two fields by two variable and print it?
eg.
If I set two variable $m and $d from month and date and they are field two and field three in file.
nawk '$2==/$m/ && $3==/$d {print}' infile
Is the above program right?
If it is wrong ,please help me to correct it.
Thanks a lot.