The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
sed pattern matching or passing variables
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
sed pattern matching or passing variables
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
03-17-2009
JCastro
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 /> )
JCastro
View Public Profile
Find all posts by JCastro
Find JCastro's past nominations received
Find JCastro's present nominations given