Date: Wed, 11 Jan 2006 15:46:23 -0500 From: Charles Swiger <cswiger@mac.com> To: Kristian Vaaf <vaaf@broadpark.no> Cc: questions@freebsd.org Subject: Re: My script to replace strings in ASCII files Message-ID: <23FC76D5-450C-4C07-8D46-782C86E6D6B3@mac.com> In-Reply-To: <f377343c7093.43c57793@broadpark.no> References: <f377343c7093.43c57793@broadpark.no>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?23FC76D5-450C-4C07-8D46-782C86E6D6B3>