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 UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #6 (permalink)  
Old 05-15-2008
rubin's Avatar
rubin rubin is offline
Registered User
 

Join Date: Nov 2007
Posts: 151
To remove the dashes too, use:

Code:
awk '!/^\=+|^\(|^\-+/' your_file
If your OS doesn't recognize awk , try nawk or /usr/xpg4/bin/awk on solaris.
Reply With Quote