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 the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #7 (permalink)  
Old 11-26-2008
asulli01 asulli01 is offline
Registered User
  
 

Join Date: Nov 2008
Posts: 6
Hi,
Thats not really what i need cause i still need 1 blank line.

I found this - it removes duplicate, consecutive lines
awk 'a !~ $0; {a=$0}'


would you know how to change it to remove only 1 of the duplicate lines?

thanks