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 -->
  #6 (permalink)  
Old 03-20-2008
Streetrcr Streetrcr is offline
Registered User
  
 

Join Date: Mar 2008
Posts: 10
trying to answer my own question here, but im still struggling if this doesnt work then i will mock up an example, i just thought that my description may have been good enough withough having to waste time making an example table.

i found on this site Sed - An Introduction and Tutorial that you can create ranges by patterns. the example code is:


Code:
sed '/start/,/stop/ s/#.*//'

i tried making <tr> my start and </tr> my stop but i just kept getting errors. furthermore i would have to NOT (!) this so instead of deleting everything in the tags, it deletes everything outside the tags.
could someone please help me get this sed command working?

thanks

Last edited by Streetrcr; 03-20-2008 at 04:05 AM.. Reason: code tags