Hi,
Can anyone tell me how in a script to make the original input below look like the desired output also shown below. Want to get rid of the lines that only have one [number] and keep the lines that have two lines with the same [number]? Thanks.....
Original :
05:20:13 [1159] OracleH3
05:22:16 [1159] 178741 Kbytes at 1619.574 Kbytes/sec
14:49:35 [11630] 497376 Kbytes at 4048.645 Kbytes/sec
04:08:15 [11635] OracleH3
04:11:17 [11635] 468679 Kbytes at 2718.051 Kbytes/sec
05:20:13 [1160] SDP1_exp
05:22:16 [1160] 1782741 Kbytes at 1619.574 Kbytes/sec
14:49:35 [19830] 497376 Kbytes at 4048.645 Kbytes/sec
04:08:15 [11636] PRD3
04:11:17 [11636] 468679 Kbytes at 2718.051 Kbytes/sec
Desired Output: Lines with [11630] and [19830] removed - numbers will change.
05:20:13 [1159] OracleH3
05:22:16 [1159] 178741 Kbytes at 1619.574 Kbytes/sec
04:08:15 [11635] OracleH3
04:11:17 [11635] 468679 Kbytes at 2718.051 Kbytes/sec
05:20:13 [1160] SDP1_exp
05:22:16 [1160] 1782741 Kbytes at 1619.574 Kbytes/sec
04:08:15 [11636] PRD3
04:11:17 [11636] 468679 Kbytes at 2718.051 Kbytes/sec
Can anyone tell me how in a script to make the original input below look like the desired output also shown below. Want to get rid of the lines that only have one [number] and keep the lines that have two lines with the same [number]? Thanks.....
Original :
05:20:13 [1159] OracleH3
05:22:16 [1159] 178741 Kbytes at 1619.574 Kbytes/sec
14:49:35 [11630] 497376 Kbytes at 4048.645 Kbytes/sec
04:08:15 [11635] OracleH3
04:11:17 [11635] 468679 Kbytes at 2718.051 Kbytes/sec
05:20:13 [1160] SDP1_exp
05:22:16 [1160] 1782741 Kbytes at 1619.574 Kbytes/sec
14:49:35 [19830] 497376 Kbytes at 4048.645 Kbytes/sec
04:08:15 [11636] PRD3
04:11:17 [11636] 468679 Kbytes at 2718.051 Kbytes/sec
Desired Output: Lines with [11630] and [19830] removed - numbers will change.
05:20:13 [1159] OracleH3
05:22:16 [1159] 178741 Kbytes at 1619.574 Kbytes/sec
04:08:15 [11635] OracleH3
04:11:17 [11635] 468679 Kbytes at 2718.051 Kbytes/sec
05:20:13 [1160] SDP1_exp
05:22:16 [1160] 1782741 Kbytes at 1619.574 Kbytes/sec
04:08:15 [11636] PRD3
04:11:17 [11636] 468679 Kbytes at 2718.051 Kbytes/sec