I'm trying to get, based in an input date, lines from an input file.<br><br>I stopped here..<br><br>Today=`date +%Y\/%m\/%d`<br> <br>awk -v HOY=$Today ' { if( substr($1, 4) == HOY ) print $0 }' /SYBASE/install/errorlog<br><br>This return lines that match only with one day; but I need lines that match with a range of dates. Example: <br>Get lines that a field match with dates between today and yesterday.<br> <br><br><br> <br>