From: Maxwell Lol on
Ryan Chan <ryanchan404(a)gmail.com> writes:

> Hi,
>
> What are the recommended tool for string replacement in a file without
> using sed? Since I don't want to take care about regex/escape issues -
> since all my search/replace are just basic substitution.

vi, emacs, perl, awk, python, tcl, bash, basic, bison/flex

Or you can write a C program.

Or you can learn sed and regular expressions

or you can tell us what your real problem is.
From: Stuart Gall on
On 2010-06-18 21:00:21 +0300, Ryan Chan <ryanchan404(a)gmail.com> said:

> Hi,
>
> What are the recommended tool for string replacement in a file without
> using sed? Since I don't want to take care about regex/escape issues -
> since all my search/replace are just basic substitution.

How about . . .
perl -n


--
TIA
Stuart
--
There are three kinds of mathematician
Those that can count and those that cant.

From: mjt on
On Fri, 18 Jun 2010 11:00:21 -0700 (PDT)
Ryan Chan <ryanchan404(a)gmail.com> wrote:

> What are the recommended tool for string replacement in a file without
> using sed? Since I don't want to take care about regex/escape issues -
> since all my search/replace are just basic substitution.

important question: are you looking for something
CLI-based or "editor-based" (such as a text editor)?

--
NAPOLEON: What shall we do with this soldier, Guiseppe? Everything he
says is wrong.
GUISEPPE: Make him a general, Excellency, and then everything he says
will be right.
-- G. B. Shaw, "The Man of Destiny"
<<< Remove YOURSHOES to email me >>>