The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
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 08-19-2006
suman_jakkula suman_jakkula is offline
Registered User
  
 

Join Date: Jan 2006
Posts: 35
Filtering multiple entries in a file

Hi,
I have a requirement to filter multiple entries in a text file.
Entries are a pair of 2 lines .Like

line1
line2
.......
........
Here line1, line2 consist of one pair. line1 and line2 contain different data.
There can be multiple entries for the same pair. And there can be 'n' such pairs having multiple entries.
Is there a method available in perl/shell scripting to filter the multiple entries.
Could any one guide me to achieve this? Any help is appreciated.

Thanks in advance.
--------------------
Suman