The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
find and replace pattren in file
User Name
Remember Me?
Password
Google UNIX.COM
Forums
Directory
Register
Forum Rules
FAQ
Contribute
Members List
Search
Today's Posts
Mark Forums Read
Thread
:
find and replace pattren in file
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
08-08-2007
ranj@chn
Playing with Ubuntu Now!
Join Date: Oct 2005
Location: Chennai
Posts: 364
check this
Code:
sed
's/^\(.*\) \(.*:\)\(.*\)$/\1x\3/g' testfile
ranj@chn
View Public Profile
Find all posts by ranj@chn