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 -->
  #2 (permalink)  
Old 07-02-2009
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,794
try this

Code:
sed -n -e '/Category/{=;x;1!p;g;$!N;p;D;}' -e h $log |grep "`date +%a' '%b' '%d`"

lose cat at the beginning. It is called UUOC - useless use of cat