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 -->
  #4 (permalink)  
Old 01-24-2008
quintet quintet is offline
Registered User
  
 

Join Date: Jun 2006
Posts: 95
try this

sed -e :a -e '/;$/!N;s/\n//; ta' -e 's/;$//' file