Solved

# Changing a Logfile

Posted on 1997-06-26

I like to change a file like here below

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

NET NAAM: 'FSW6';

NODE(S): X1A.B12 S6.3 ;

NET NAAM: 'GND';

NODE(S): G1.7 D5.7 D4.7 D3.7 D2.8 D1.8

V3.2 C3.2 R25.1 R20.1 R13.2 R18.2

R27.1 C10.2 C9.2 C8.2 C7.2 C6.2

C5.2 C4.2 C1.2 C2.2 X1A.B10 X1A.B6

X2A.B16 X2A.A20 X2A.A13 S16.B12

S16.B1 ;

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

I 've need a script sothat the file will be like here below

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

FSW6 X1A.B12 S6.3

GND G1.7 D5.7 D4.7 D3.7 D2.8 D1.8

V3.2 C3.2 R25.1 R20.1 R13.2 R18.2

R27.1 C10.2 C9.2 C8.2 C7.2 C6.2

C5.2 C4.2 C1.2 C2.2 X1A.B10 X1A.B6

X2A.B16 X2A.A20 X2A.A13 S16.B12

S16.B1

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

I'm working on a SUNos system with a Csh shell scripts for

doing this only the problem is :

How can I get the line with NODE(S) on the back from the

line NET NAAM? Can I use sed for removing strings in more

then one line?

When somebody knows a solution for this give me

suggestions please. Thanks a lot for helping.

Sigma