Hi I have a file that has data throughout the file but the lines i want to pull out look like this:
\\node_name\c- ACTIVE_VERSION DIR \ 351134684 XCHG_3MTH
$\bo_unts\stg_-
file_mb1_sg1-
_mb1
anythin\relevantdrive
\\node_name\c- ACTIVE_VERSION FILE \RECYCLER\S-2-3-4- INFO2 2008-08-13
$\bo_unts\stg_- 04:28:04.000000
exchange_mb5_sg5-
_mb3 9-1106\
As you can see the data is truncated and hangs onto 4 extra lines from the first column i.e the first line should be
\\node_name\c$\bo_unts\stg_file_mb1_sg1_mb1 then active version etc
Therefore I want to use AWK to go through the file and extract the 5 lines (in total) so it'd read from the \\node_name as its first line then count down 4 lines.
Really bad explanation but all I need from the file is all the lines under node_name including the node_name line.
\\node_name\c- ACTIVE_VERSION DIR \ 351134684 XCHG_3MTH
$\bo_unts\stg_-
file_mb1_sg1-
_mb1
anythin\relevantdrive
\\node_name\c- ACTIVE_VERSION FILE \RECYCLER\S-2-3-4- INFO2 2008-08-13
$\bo_unts\stg_- 04:28:04.000000
exchange_mb5_sg5-
_mb3 9-1106\
As you can see the data is truncated and hangs onto 4 extra lines from the first column i.e the first line should be
\\node_name\c$\bo_unts\stg_file_mb1_sg1_mb1 then active version etc
Therefore I want to use AWK to go through the file and extract the 5 lines (in total) so it'd read from the \\node_name as its first line then count down 4 lines.
Really bad explanation but all I need from the file is all the lines under node_name including the node_name line.