The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 03-19-2009
saifurshaon saifurshaon is offline
Registered User
  
 

Join Date: Jan 2009
Posts: 29
Passing non Awk Argument in Awk

Dear Conerned,
I am facing a situation where i need to pass an argument which is non-awk variable like

day=090319
awk '/TID:R/ && /TTIN:/' transaction.log

I want to add this day variable like below

awk '/TID:R$day/ && /TTIN:/' transaction.log


But it is not working.