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 06-26-2009
HIMANI's Avatar
HIMANI HIMANI is offline
Registered User
  
 

Join Date: Jul 2007
Posts: 20
deleting a line from output

Hi ,
I have a script taht returns result in teh following format :


[+] End of input file.
a,b,c
3,4,5
s,d,f,
[+] End of input file.
d,t,h
r,t,y,
4,6,9
a,4,f
e,6,7
[+] End of input file.
w,e,r

the script that gives this result is :

tcpdump ..... | |sort|uniq -c | head -10


I need to remove all thw lines that are "[+] End of input file." so i piped the result of the script to the sed command changing the script to :

tcpdump ..... | |sort|uniq -c | sed "/End of input file/d" | head -10


but this doesnt seem to work. Can some one please help me with this?


Thanks,
Himi