read lines and process them

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • BigBen28600
    New Member
    • Nov 2009
    • 1

    read lines and process them

    Hello,

    I'm new to unix, have read some books about it , but I don't know how to start this one

    example: file.log
    cat: 200 ----> together
    profileid 100 |
    create:10/10/2009 |
    cat:201 ---->together
    profileid 102 |
    cat 202 ---->together
    create 11/11/2009 |
    profile 201 |
    ............

    I want to have a result like this
    cat 201 profile 102


    all block start with cat. but some of them don't have the line created, i want to filter these block out of the file.log



    Thanks
Working...