Re: My script to replace strings in ASCII files

2006-01-12 Thread Kristian Vaaf
ipt to replace strings in ASCII files > On 2006-01-11 21:40, lars <[EMAIL PROTECTED]> wrote: > >Kristian Vaaf wrote: > >> Just curious, what do I need to do to be able to execute this > >> script like: > >> > >> $ text-replace old_string new_string

Re: My script to replace strings in ASCII files

2006-01-12 Thread Giorgos Keramidas
On 2006-01-11 21:40, lars <[EMAIL PROTECTED]> wrote: >Kristian Vaaf wrote: >> Just curious, what do I need to do to be able to execute this >> script like: >> >> $ text-replace old_string new_string >> >> I find it a bit inconvenient having to edit the script for >> every thing I need to replace.

Re: My script to replace strings in ASCII files

2006-01-11 Thread Parv
in message <[EMAIL PROTECTED]>, wrote Jerry McAllister thusly... > > > Just curious, what do I need to do to be able to execute this > > script like: > > > > $ text-replace old_string new_string > > Check out tr(1). > It does a good job of it with very simple rules. ... > > sed -i ''

Re: My script to replace strings in ASCII files

2006-01-11 Thread Jerry McAllister
> > > Hello! > > Just curious, what do I need to do to be able to execute this script like: > > $ text-replace old_string new_string Check out tr(1). It does a good job of it with very simple rules. jerry > > I find it a bit inconvenient having to edit the script for every thing I need

Re: My script to replace strings in ASCII files

2006-01-11 Thread Charles Swiger
On Jan 11, 2006, at 3:24 PM, Kristian Vaaf wrote: Just curious, what do I need to do to be able to execute this script like: $ text-replace old_string new_string I find it a bit inconvenient having to edit the script for every thing I need to replace. Use positional arguments $1 and $2, r

Re: My script to replace strings in ASCII files

2006-01-11 Thread lars
Kristian Vaaf wrote: Hello! Just curious, what do I need to do to be able to execute this script like: $ text-replace old_string new_string I find it a bit inconvenient having to edit the script for every thing I need to replace. Thanks, Kristian #!/usr/local/bin/bash # # Replace old with

My script to replace strings in ASCII files

2006-01-11 Thread Kristian Vaaf
Hello! Just curious, what do I need to do to be able to execute this script like: $ text-replace old_string new_string I find it a bit inconvenient having to edit the script for every thing I need to replace. Thanks, Kristian #!/usr/local/bin/bash # # Replace old with new inside all text f