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
"replace permission entries on all child objects.... "access denied error message
ADP only please (Access Project) CONTINUOUS FORM REFRESH
Adobe Version Cue CS3 does not install.
trusted_networks help
DFS mix R2 and non-R2
Alter column , entire table
getting IE4 and/or IE5 for win95
dsn=5.0.0, stat=Service unavailable
IIS Worker Process encountered a problem
Change Sort Order from 49 to 52