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
sending mail from an exchange server through a pop account
SQL server desktop engine "The instance name specified is invalid"
Reports for fast printing by dot matrix printer
Using sp_OAMethod for refresh/update excel pivot sheet without open it
Microsoft, Exchange Server, 2007, setup cannot verify that the Host "A" record for this computer exists within the DNS database located on server (The Server IP address)
I would like to know how to convert RMVB to mpeg or avi
can group policy uncheck "require server verifcation" checkbox in trusted sites?
One server in Citrix Farm will not load roaming profiles
Bash Script, Search for a given directory
554 This server requires PTR for unauthenticated connections.