Andrew White on Sat, 11 Dec 1999 16:03:01 -0500 (EST)


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [Plug] String Conversion


Hi NR,

echo "foobar" | sed -e 's/oba/josh/g'

-Andrew


On Sat, 11 Dec 1999, Nicolai Rosen wrote:

> I'm trying to create a shell script and I've run into a stumbling block in 
> terms of converting one string into another. cut and tr don't seem to be 
> able to do what I want. An example of what I want to do is if you had the 
> string "foobar" and you wanted to convert every instance of "oba" to "josh", 
> but you didn't want to convert the other o to anything. So the desired 
> result would be "fojoshr"
> 
> ______________________________________________________
> Get Your Private, Free Email at http://www.hotmail.com
> 
> _______________________________________________
> Plug maillist  -  Plug@lists.nothinbut.net
> http://lists.nothinbut.net/mail/listinfo/plug
> 


_______________________________________________
Plug maillist  -  Plug@lists.nothinbut.net
http://lists.nothinbut.net/mail/listinfo/plug