in reply to Re: Regex to extract certain lines only from command output/text file.
in thread Regex to extract certain lines only from command output/text file.
arnaud99
Check your script, the output indicated in your post is really different to what your code really shows. Below is the output of your script:
According, to the OP,7 hostname12 Generic-legacy 10000000AB210ACF6 --- 10000000AB210ACF4 2:5:4 10000000AB210ACF4 2:3:4 10000000AB210ACF6 3:5:4 9 hostname13 Generic 10000000AB2A3006A 3:5:2 5001438002A3004A --- 5001438002A30048 2:3:3 5001438002A30048 2:5:2 5001438002A30048 2:5:2 9 hostname13 Generic 10000000AB2A3006A 3:5:2 10000000AB2A30068 2:5:2 21 HOSTNAME Generic
Is not suppose to be shown in the final output. Your script even modified some info. like this:9 hostname13 Generic 10000000AB2A3006A 3:5:2 10000000AB2A30068 2:5:2
The OP has only one "9 hostname13 Generic", so how did it become two, in the final output.9 hostname13 Generic 10000000AB2A3006A 3:5:2 5001438002A3004A --- 5001438002A30048 2:3:3 5001438002A30048 2:5:2 5001438002A30048 2:5:2 9 hostname13 Generic 10000000AB2A3006A 3:5:2 10000000AB2A30068 2:5:2
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Regex to extract certain lines only from command output/text file.
by arnaud99 (Beadle) on Mar 08, 2013 at 03:16 UTC |