- cat file | awk '{if ($1 == '"$crt_month"') print $1}'
+ cat file | awk '{if ($1 == "'"$crt_month"'") print $1}'
Se vede diferenta? awk vrea el insusi niste ghilimele in jurul
constantelor string, altfel iese ceva gen:
if ($1 == Jan) ...
in loc de
if ($1 == "Jan") ...
--
Paul Chitescu
[EMAIL PROTECTED] http://pchitescu.null.ro/ ICQ:22641673
Any spammers will be painfully squeezed into /dev/null
---
Pentru dezabonare, trimiteti mail la
[EMAIL PROTECTED] cu subiectul 'unsubscribe rlug'.
REGULI, arhive si alte informatii: http://www.lug.ro/mlist/