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
"kmode exception"
VPN is connected, but I can't transfer data
module.pm not returning true value
looking for upgrade tool / manual CRM 3 to CRM 4
Windows Mobile 5/6 DSP Group TrueSpeech(TM) playback needed
Exchange 2003 willnot allow the name to be resolved for 1 certain user.
NT 4.0 Every 4 Cluster Problem
Good anti-virus program?
parametized cursor declaration
Vista resumes from sleep and blue screens after a few seconds