The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 10-25-2006
bobo bobo is offline
Registered User
 

Join Date: Jan 2006
Posts: 145
Unhappy Get line1 and line4 in a repeat pattern file

I have a datafile contain hundreds of lines:


line1
1
2
line4
==================

line1
4
2
line4
==================

line1
3
1
line4
===================

.......


I want data to be:

line1
line4
=================

line1
line4
=================

line1
line4


How can I do this? Please help!
Reply With Quote
Forum Sponsor