1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

String Search in a file

Discussion in 'Shell Script' started by praveenkulkarni, Sep 2, 2010.

  1. praveenkulkarni

    praveenkulkarni New Member

    Joined:
    Sep 2, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Process Beginning - 08-26-2010-23.41.47
    DB2 CONNECTION SUCCESSFUL!
    Ready to process and load file: FILENAME
    # of rows in the TABLENAME table before inserts was 8364
    FILENAME - RECORDS READ COUNT: 4838
    FILENAME - INSERTED ROW COUNT: 129
    FILENAME - ERROR RECORDS COUNT: 0
    # of rows in the audit.ELIG_RESP_AUDIT table after inserts was 8493
    Process Complete 08-26-2010-23.41.49

    There are many instance like the above in a single file.I am able to open the file and read line by line. But, my requirement is to read the Process Beginning, INSERTED ROW COUNT: and Process Complete into three variables. The count should keep on adding between a process.

    can anyone please help me with this?
     

Share This Page