Hi,
I'm looking for a script the can split a file (example below) into seperate file. The parts that should be in the seperate files are the lines between the "----" lines.
I don't know how to do that... Any suggestions?
Thanks in advance.
Sample file:
---------------------------------------------------------------------------
LABEL: CONSOLE
IDENTIFIER: 7F88E76D
Date/Time: Sun Mar 9 09:28:21 NFT 2008
Sequence Number: 19759
Machine Id: 00C4DA704C00
Node Id: nlchv3xmn001
Class: S
Type: PERM
Resource Name: console
Description
SOFTWARE PROGRAM ERROR
---------------------------------------------------------------------------
LABEL: CONSOLE
IDENTIFIER: 7F88E76D
Date/Time: Sun Mar 9 09:28:21 NFT 2008
Sequence Number: 19759
Machine Id: 00C4DA704C00
Node Id: nlchv3xmn001
Class: S
Type: PERM
Resource Name: console
Description
SOFTWARE PROGRAM ERROR
---------------------------------------------------------------------------
I'm looking for a script the can split a file (example below) into seperate file. The parts that should be in the seperate files are the lines between the "----" lines.
I don't know how to do that... Any suggestions?
Thanks in advance.
Sample file:
---------------------------------------------------------------------------
LABEL: CONSOLE
IDENTIFIER: 7F88E76D
Date/Time: Sun Mar 9 09:28:21 NFT 2008
Sequence Number: 19759
Machine Id: 00C4DA704C00
Node Id: nlchv3xmn001
Class: S
Type: PERM
Resource Name: console
Description
SOFTWARE PROGRAM ERROR
---------------------------------------------------------------------------
LABEL: CONSOLE
IDENTIFIER: 7F88E76D
Date/Time: Sun Mar 9 09:28:21 NFT 2008
Sequence Number: 19759
Machine Id: 00C4DA704C00
Node Id: nlchv3xmn001
Class: S
Type: PERM
Resource Name: console
Description
SOFTWARE PROGRAM ERROR
---------------------------------------------------------------------------