My script to replace strings in ASCII files
Charles Swiger
cswiger at mac.com
Wed Jan 11 12:46:31 PST 2006
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, rather than "old" and "new" in
the sed statement.
--
-Chuck
More information about the freebsd-questions
mailing list