madasafish
Technical User
Given the following data, I want to use nawk to print the last record (records being of variable length between "2006" eg: RS="2006" that has [Warning] in the record. Ideally, without the [Warning] line. The record I am interesting in getting is shown in red. I would appreciate any help with this.
Thanks in advance
Madasafish
==========================================================
2006/ 5/31/(Wed.)14: 3:26 [Warning] It passed from start more than 35 minutes, But the following shape is not found.
HT-2875 68260 JD000-B1
ASM : 68260_JD000-B1
HT-2875 68260 JD410-B1
ASM : 68260_JD410-B1
HT-2875 68260 JD41E-B1
ASM : 68260_JD41E-B1
2006/ 5/31/(Wed.)14: 8:26 [Warning] It passed from start more than 40 minutes, But the following shape is not found.
HT-2875 68260 JD000-B1
ASM : 68260_JD000-B1
HT-2875 68260 JD410-B1
ASM : 68260_JD410-B1
HT-2875 68260 JD41E-B1
ASM : 68260_JD41E-B1
2006/ 5/31/(Wed.)14:12:49 Release-Info. File = E:\input\HT-2875.rlse
2006/ 5/31/(Wed.)14:12:49 HT-2875 Search start. Number of model-data: 8 (All 85 line ) [Q:\output]
2006/ 5/31/(Wed.)14:12:49 Found 28038_JD410-B1 in Q:\output\HT-2875\28038_JD410-B1_002\28038.txt 1/8
2006/ 5/31/(Wed.)14:12:49 Found 28038_JD42A-B1 in Q:\output\HT-2875\28038_JD42A-B1_002\28038.txt 2/8
2006/ 5/31/(Wed.)14:12:49 Found 28039_JD41A-B1 in Q:\output\HT-2875\28039_JD41A-B1_002\28039.txt 3/8
2006/ 5/31/(Wed.)14:12:49 Found 28039_JD42A-B1 in Q:\output\HT-2875\28039_JD42A-B1_002\28039.txt 4/8
2006/ 5/31/(Wed.)14:12:50 Found 68260_JD400-B1 in Q:\output\HT-2875\68260_JD400-B1_003\68260.txt 5/8
Thanks in advance
Madasafish
==========================================================
2006/ 5/31/(Wed.)14: 3:26 [Warning] It passed from start more than 35 minutes, But the following shape is not found.
HT-2875 68260 JD000-B1
ASM : 68260_JD000-B1
HT-2875 68260 JD410-B1
ASM : 68260_JD410-B1
HT-2875 68260 JD41E-B1
ASM : 68260_JD41E-B1
2006/ 5/31/(Wed.)14: 8:26 [Warning] It passed from start more than 40 minutes, But the following shape is not found.
HT-2875 68260 JD000-B1
ASM : 68260_JD000-B1
HT-2875 68260 JD410-B1
ASM : 68260_JD410-B1
HT-2875 68260 JD41E-B1
ASM : 68260_JD41E-B1
2006/ 5/31/(Wed.)14:12:49 Release-Info. File = E:\input\HT-2875.rlse
2006/ 5/31/(Wed.)14:12:49 HT-2875 Search start. Number of model-data: 8 (All 85 line ) [Q:\output]
2006/ 5/31/(Wed.)14:12:49 Found 28038_JD410-B1 in Q:\output\HT-2875\28038_JD410-B1_002\28038.txt 1/8
2006/ 5/31/(Wed.)14:12:49 Found 28038_JD42A-B1 in Q:\output\HT-2875\28038_JD42A-B1_002\28038.txt 2/8
2006/ 5/31/(Wed.)14:12:49 Found 28039_JD41A-B1 in Q:\output\HT-2875\28039_JD41A-B1_002\28039.txt 3/8
2006/ 5/31/(Wed.)14:12:49 Found 28039_JD42A-B1 in Q:\output\HT-2875\28039_JD42A-B1_002\28039.txt 4/8
2006/ 5/31/(Wed.)14:12:50 Found 68260_JD400-B1 in Q:\output\HT-2875\68260_JD400-B1_003\68260.txt 5/8