Hi Incredible
Thanks for take such an inisiatif
But still i cant grep with both string, it can show only one string. I try this :
This is the content of rman_error.txt :
------------------------------------
SQL*Plus: Release 10.2.0.3.0 - Production on Wed Jul 23 14:16:48 2008
Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
START_TIME END_TIME STATUS
---------- --------- -----------------------
23-JUL-08 23-JUL-08 COMPLETED
23-JUL-08 23-JUL-08 COMPLETED
23-JUL-08 23-JUL-08 COMPLETED
23-JUL-08 23-JUL-08 COMPLETED
23-JUL-08 23-JUL-08 COMPLETED
23-JUL-08 23-JUL-08 COMPLETED
23-JUL-08 23-JUL-08 COMPLETED
23-JUL-08 23-JUL-08 COMPLETED
23-JUL-08 23-JUL-08 COMPLETED
23-JUL-08 23-JUL-08 COMPLETED
23-JUL-08 23-JUL-08 COMPLETED
24-JUL-08 24-JUL-08 FAILED
24-JUL-08 24-JUL-08 COMPLETED WITH WARNING
23-JUL-08 23-JUL-08 COMPLETED WITH WARNING
START_TIME END_TIME STATUS
---------- --------- -----------------------
23-JUL-08 23-JUL-08 COMPLETED
12 rows selected.
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
This is the command i use :
bash-3.00$ more rman_error.txt | egrep -i 'COMPLETED'
23-JUL-08 23-JUL-08 COMPLETED
23-JUL-08 23-JUL-08 COMPLETED
23-JUL-08 23-JUL-08 COMPLETED
23-JUL-08 23-JUL-08 COMPLETED
23-JUL-08 23-JUL-08 COMPLETED
23-JUL-08 23-JUL-08 COMPLETED
23-JUL-08 23-JUL-08 COMPLETED
23-JUL-08 23-JUL-08 COMPLETED
23-JUL-08 23-JUL-08 COMPLETED
23-JUL-08 23-JUL-08 COMPLETED
23-JUL-08 23-JUL-08 COMPLETED
24-JUL-08 24-JUL-08 COMPLETED WITH WARNING
23-JUL-08 23-JUL-08 COMPLETED WITH WARNING
23-JUL-08 23-JUL-08 COMPLETED
When i use this command, it doesnt return any value :
bash-3.00$ more rman_error.txt | egrep -i 'COMPLETED' | egrep -i 'FAILED'
bash-3.00$
bash-3.00$ cat rman_error.txt | egrep -i 'COMPLETED' | egrep -i 'FAILED'
bash-3.00$
bash-3.00$ more rman_error.txt | grep -i "COMPLETED" | grep -i "FAILED"
bash-3.00$
Hmmm....i'm using Solaris 10 by the way