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 -->
  #2 (permalink)  
Old 11-21-2008
Konerak Konerak is offline
Registered User
  
 

Join Date: Nov 2008
Posts: 20
sed -n '/xxx/,/xxx/p' <tst.txt

Will find from the first xxx to the second,
from the third to the fourth,
etc...