The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
Script to monitor the pattern in the log file
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
Script to monitor the pattern in the log file
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
07-02-2009
jim mcnamara
...@...
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
jim mcnamara
View Public Profile
Find all posts by jim mcnamara
Find jim mcnamara's past nominations received
Find jim mcnamara's present nominations given