parse throuh file to extract output

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cdfd1234
    New Member
    • Mar 2008
    • 2

    parse throuh file to extract output

    A File have
    ABCDEFG
    ABCEEFH
    * * * : * * * .

    so it have three rows . Those first two rows say
    A and A match then it will be * (asterisk) in the third row.
    and those D and E not match there will be colon (: ) or
    G and H not match .(fullstop) in the third row

    Our question is
    In third row where there is colon (: ) and .(fullstop)
    tell the number and wht is that name at that number
    therefore output will be
    D4E because colon is at 4 number
    G7H because fullstop is at 7 number

    And it will be a long file where there is colon and full stop
    just tell the number and name ...

    One more question is
    In some other files colon or fullstop may be at 4th row or 5th row
    can script this one separately
    Edit/Delete Message
  • nithinpes
    Recognized Expert Contributor
    • Dec 2007
    • 410

    #2
    If you let us know what you have tried so far, we may help you.

    Please read Posting Guidelines

    Comment

    Working...