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 -->
  #2 (permalink)  
Old 03-17-2009
JCastro JCastro is offline
Registered User
  
 

Join Date: Mar 2009
Location: Canary Is. Spain
Posts: 5
Try:
Code:
 sed -n '/^<meta/p' test | sed 's\>\ />\g'
(sed takes only the lines starting with <meta and then changes > to /> )