The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
replace chars,
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
:
replace chars,
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
02-27-2007
dennis.jacob
dj -------
Join Date: Feb 2007
Location: Cochin/Bangalore, India
Posts: 447
If x="21312312dennis3123123123"
echo ${x/dennis/xxxxxx}
x will be 21312312xxxxxx3123123123 now
echo $x |
sed
's/dennis/xxxxxx/'
will also give the same result.
I hope this is what you are expecting!!
dennis.jacob
View Public Profile
Find all posts by dennis.jacob