Search Results

Search: Posts Made By: bbnl
4,868
Posted By bbnl
got thanks for the help
got thanks for the help
4,868
Posted By bbnl
extremely sorry, stupid of me not to see that...
extremely sorry, stupid of me not to see that there is no message in today's log.

i tried with a previous date and it is working fine.

Sir's
thank you all for having patience and helping me...
4,868
Posted By bbnl
getting error cat t.ksh #Jun 28...
getting error

cat t.ksh

#Jun 28 10:18:36 EDT 2012
whichdate="Jun 28 .* 2012"
awk '/^... ... .. ..:..:/{printf RS}{print NR ": " $0}' alert_HRPRD89.log | awk '$0~s' s="${whichdate}.*ORA-07445"...
4,868
Posted By bbnl
can i pass the date as a variable. awk '/Jun...
can i pass the date as a variable.

awk '/Jun 12 .* 2012.*ORA-07445/'
like
awk '/$whichdate.*ORA-/'

Please do let me know
4,868
Posted By bbnl
Thanks all for helping, both the solutions...
Thanks all for helping,

both the solutions are working, sorry asking too much,
is there any way i can get line numbers too along with the output,
Also is there any way i can search based on a...
4,868
Posted By bbnl
thank u very much for a fast response, but it is...
thank u very much for a fast response, but it is failing,
this is on aix. anythoughts how else i can do this

[HRPRD89]$ grep -A3 -B3 "ORA-07445" alert_HRPRD89.log
grep: illegal option -- A...
4,868
Posted By bbnl
How to get lines before and after a searched text?
Hi,
I am trying to monitor alert log of oracle. i am searching based on ORA- error message
if i find the line, i want the 2 to 3 lines before search line and 2 to 3 lines after the searched line....
Showing results 1 to 7 of 7

 
All times are GMT -4. The time now is 09:47 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy