The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux 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: 148
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!