I am on a HPUX 11.0 box using ksh.
I need to use the /etc/host file to create another file used elsewhere.
The format of the new file should be
router <hostname> ATAP <Company Name>
ip <ip address>
router widhost1 ATAP WIDGET COMPANY
ip 10.10.10.2
# WIDGET COMPANY
widhost1 10.10.10.2
widhost2 10.10.11.3
widhost3 10.10.12.4
widhost4 10.10.13.5
#
# DIDGET COMPANY
didhost1 10.11.10.2
didhost2 10.11.11.2
didhost3 10.11.12.2
#
I am having difficulty setting the company name delimiter -- basically, read
first line, print the host, ip and company name until the company name
changes.
begin 666 cvidal.vcf
M0D5'24XZ5D-!4D0-"E9%4E-)3TXZ,BXQ#0I..CMC=FED86P-"D9..F-V:61A
M; T*14U!24P[4%)%1CM)3E1%4DY%5#IC=FED86Q 871T+F-O;0T*4D56.C(P
;,#,P-3 Q5#$R,C$R,%H-"D5.1#I60T%21 T*
`
end