Scripting

From: Macros (bbbbok_at_yahoo.com)
Date: 12/30/03


Date: Wed, 31 Dec 2003 04:41:06 +0800

Hi,

Need another help on scripting:

Say my file "info.txT":

ServerA:
IP = 10.10.10.1
Security = normal
Use = local

ServerB:
IP = 10.10.10.2
Security = normal
Use = share

ServerC:
IP = 10.10.10.3
Security = normal
Use = local

------------------------------------

1. How can I just display the Line from ServerB: to just before
ServerC:, meaning I only want to display info on ServerB:

2. How can I run a script against "info.txt", so that it will
change/append content as follow:

ServerA:
IP = 10.10.10.1
Security = normal
Use = local

ServerB:
IP = 10.10.10.20
Security = hard
Use = share
OS = aix433
Ram = 4Gb
CPUs = 2

ServerC:
IP = 10.10.10.3
Security = normal
Use = local

--------------------------------------

Would really appreciate if someone could shine some lights on this
scriptings.

Thnx
-Macros