Microsoft
Software
Hardware
Network
Question : to grep log files
Hi, I am using egrep to grep for a particlular date in a log file. However I am getting only first line.
Example in the log below, When I egrep for Nov 12, 2008 I am getting only the first line, but I require all the lines following that. Is there any way by which we can do that.
er.html" not found from requested resource "/m
otoconfig/gomez.jsp".>
Size of Env:36
ModeId:1
Host:172.20.79.109
Domain:mphasis
ModeId:1
Host:FL08-4492
Domain:comm.mot.com
ModeId:1
Host:mlbp-0090
Domain:mphasis
ModeId:1
Host:mlbp-0101
Domain:mphasis
ModeId:1
Host:172.20.79.74
Domain:mphasis
ModeId:1
Host:MLBP-0097
Domain:MPHASIS.COM
ModeId:1
Host:mjie-0003
Domain:mphasis
ModeId:1
Host:plsu014
Answer : to grep log files
Assuming a fixed number of lines (and Solaris 10), you can do
/usr/sfw/bin/ggrep -A 20 "Nov 12, 2008 |11/12" motoconfig1.out
Random Solutions
Retrieve title from URL in Ruby on Rails
Help with Mini Dump Analysis
The Web site that is referenced here is not in the configuration database.
Windows explorer keeps on reloading my taskbar, shortcuts etc.
Drag N Drop: FLAC batch decode file/files/folder/folders
flash: import a scrollbar component
Problems passing a long XML string to OPENXML using sp_xml_preparedocument.
IBM OLE DB PROVIDER
Excel Macro to Delete Leading Spaces
Should I use Hyper-V?