我的.txt文件看起来像下面的格式,在@@符号之前和之后,需要通过Shell / Bash脚本读取@@符号内每个部分的Topic,PCValue和Isr值:
@@
Topic:Test1 PCValue:2 RF:2 Configs:min
Topic: Test1 PC: 0 Leader: 3 Replicas: 3,1 Isr: 3,1
Topic: Test1 PC: 1 Leader: 1 Replicas: 1,2 Isr: 1,2
@@
Topic:Test2 PCValue:3 RF:2 Configs:min
Topic: Test2 PC: 0 Leader: 3 Replicas: 3,1 Isr: 3,1
Topic: Test2 PC: 1 Leader: 1 Replicas: 1,2 Isr: 1,2
@@
Topic:Test3 PCValue:4 RF:2 Configs:min
Topic: Test3 PC: 0 Leader: 3 Replicas: 3,1 Isr: 3,1
Topic: Test3 PC: 1 Leader: 1 Replicas: 1,2 Isr: 1,2
@@
**Sample output:**
Test1: PCValue:2, Isr: 3,1
Test2: PCValue:3, Isr: 3,1
Test3: PCValue:4, Isr: 3,1
请帮助。