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
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.
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 ''
>
>
> 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
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
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
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