The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
Sed , Replace a "variable text" inside of a statement
.
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 , Replace a "variable text" inside of a statement
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
4
(
permalink
)
03-04-2008
danmero
丹
Join Date: Nov 2007
Location: 45.48-73.63
Posts: 1,441
Code:
sed
-e "s/\(<block>\)
.*
\(<\/block>\)/\1
new
\2/"
danmero
View Public Profile
Find all posts by danmero
Find danmero's past nominations received
Find danmero's present nominations given