Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Grep with 'OR' condition

446Oct 4 2013 — edited Oct 7 2013


Hi-

      We use to run a shell script to calculate the timings of completed jobs in a linux server,where we need to get the timings of the jobs in a logfile.

         Here in our logfiles we could find two types of scenarios- either this one -[INFO\] Total time: 4 minutes 2 seconds

                                                                                      or this one-   INFO: Total time:  4:2.29s

         here i need to get the timings - 4 minutes 2 seconds or 4:2.29s using a single grep command using a OR condition.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 4 2013
Added on Oct 4 2013
5 comments
2,858 views