Footer validation

Discussion in 'General Linux' started by id4dsc, Mar 26, 2013.

  1. id4dsc

    id4dsc New Member

    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    I have text file as below.

    20120304
    QWERTT||SDFG
    QWERTT||SDFG
    QWERTT||SDFG
    QWERTT||SDFG
    QWERTT||SDFG
    5

    Hi,


    My requirement is as below.
    First line should match with today's Date. If it matches it should check for the number of records except footer and header and this count should match with footer. If it matches the data should be moved to DB table(oracle) ,otherwise it should not load data to DB table.

    Kindly assist.

    Thanks,
    Saty.

Share This Page