Michael W. Ryan on Sat, 11 Dec 1999 16:16:43 -0500 (EST) |
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" You might not want to limit yourself to a shell script. Use a glue language, such as Python, to do the processing for you and execute any other programs you want to execute. Michael W. Ryan, MCP, MCT | OTAKON 2000 mryan@netaxs.com | Convention of Otaku Generation http://www.netaxs.com/~mryan/ | http://www.otakon.com/ PGP fingerprint: 7B E5 75 7F 24 EE 19 35 A5 DF C3 45 27 B5 DB DF PGP public key available by fingering mryan@unix.netaxs.com (use -l opt) _______________________________________________ Plug maillist - Plug@lists.nothinbut.net http://lists.nothinbut.net/mail/listinfo/plug
|
|