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 > Special Forums > UNIX Desktop 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 01-09-2009
shivi707 shivi707 is offline
Registered User
  
 

Join Date: Jan 2009
Posts: 2
Fetching unique values from file

After giving

grep -A4 "feature 1," <file name>

I have extracted the following text

feature 1,
subfeat 2,
type 1,
subtype 5,
dump '30352f30312f323030392031313a33303a3337'H -- "05/01/2009 11:30:37" --
--

feature 1,
subfeat 0,
type 3,
subtype 1,
value 0,
--

feature 1,
subfeat 2,
type 1,
subtype 5,
dump '30352f30312f323030392031313a33303a3336'H -- "05/01/2009 11:30:36" --


But here the section

feature 1,
subfeat 2,
type 1,
subtype 5,
dump '30352f30312f323030392031313a33303a3336'H -- "05/01/2009 11:30:36"
is appearing twice.I want it to show up only once.Is there a way to do that?