5 Replies Latest reply: Oct 7, 2013 2:37 AM by 446 RSS

    Grep with 'OR' condition

    446


      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.