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
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