logo       

sed to take 3 lines with same variable: msg#00037

editors.sed.user

Subject: sed to take 3 lines with same variable

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

any ideas?


__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com


------------------------ Yahoo! Groups Sponsor --------------------~-->
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/u8TY5A/tzNLAA/yQLSAA/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>
Google Custom Search

News | FAQ | advertise