Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: MSosa
  • Order by date
  1. MSosa

    How can I compare & get the yesterday date in AWK?

    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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>awk -v HOY=$Today ' { if( substr($1, 4) == HOY ) print $0 }' /SYBASE/install/errorlog<br><br>This return lines that...

Part and Inventory Search

Back
Top