environment: v445 Solaris 9
I would like to pass a variable to awk....
I need to pass yesterdays date into awk so I can search and print all lines that have yesterdays date in column $7 in format: mm/dd/yy
YESTERDAY=`GetDate -1 '+%m/%d/%y'
bpdbjobs|awk '$7 == "$YESTERDAY"'
This doesn't work.....
Thanks....
Joe
I would like to pass a variable to awk....
I need to pass yesterdays date into awk so I can search and print all lines that have yesterdays date in column $7 in format: mm/dd/yy
YESTERDAY=`GetDate -1 '+%m/%d/%y'
bpdbjobs|awk '$7 == "$YESTERDAY"'
This doesn't work.....
Thanks....
Joe