The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
replacing specific lines in a file
.
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
:
replacing specific lines in a file
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
3
(
permalink
)
09-29-2006
gauravgoel
Registered User
Join Date: Dec 2005
Location: India
Posts: 218
use this
Quote:
sed "s/old text/new text/g" input.txt
though not clean, should work
Last edited by gauravgoel; 09-29-2006 at
09:10 AM
..
gauravgoel
View Public Profile
Find all posts by gauravgoel
Find gauravgoel's past nominations received
Find gauravgoel's present nominations given