|
Re: sed to take 3 lines with same variable: msg#00038editors.sed.user
shamrul ismawi wrote: > Hi, > > i got an input file like this > Header: One > Subject:geography > Text:passed > Header:Two > Header:Three > Subject:physic > Text:failed > Header:Four > Text:passed > > > I need to produce the output like: > Header: One > Subject:geography > Text:passed > Header:Three > Subject:physic > Text:failed > > > I need to get 3 line that containing sequences with > Header,Subject and Text Oh, this is ridiculous. Rather than have us do your homework for you, why don't you read the manual? Here's the Sun Solaris version of the sed manual on line: http://bama.ua.edu/cgi-bin/man-cgi?sed Try it out and come back if you find yourself getting stuck. Regards, Angus ------------------------ Yahoo! Groups Sponsor --------------------~--> Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/2jUsvC/tzNLAA/TtwFAA/dkFolB/TM --------------------------------------------------------------------~-> -- Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/sed-users/ <*> To unsubscribe from this group, send an email to: sed-users-unsubscribe@xxxxxxxxxxxxxxx <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/ |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | sed to take 3 lines with same variable: 00038, shamrul ismawi |
|---|---|
| Next by Date: | Re: sed to take 3 lines with same variable: 00038, Eric Pement |
| Previous by Thread: | sed to take 3 lines with same variablei: 00038, shamrul ismawi |
| Next by Thread: | Re: sed to take 3 lines with same variable: 00038, Eric Pement |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |