[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: RFS: rrep



Hi Kilian,

Thank you very much for sponsoring the rrep package and for you
comments! That was really quick. I will prepare an update for the
package which will address all of your concerns.

On 08/01/2011 11:29 PM, Kilian Krause wrote:
> Regarding your rationale that sed doesn't have a matching algorithm I tend
> to disagree. sed does have pattern matching like '/whatever/s,what,who,'
> which will only rewrite all lines that have "whatever" to "whoever". Yet
> I'll not regard this to stand in the way of accepting your package into
> Debian. ;-)

Yes, you are right. I was referring to processing of multiple files
similar to what grep can do. grep is intended for searching patterns in
files. It has all the functionality build-in to do the job. Directories
can be processed recursively, specific files can be selected using the
--include options, etc.

Sed, on the other hand, is intended to be a stream editor. It is not
intended to be for replacing, what grep is for searching. If you want to
do the same for replacing as grep does for searching, then you have to
use more than one utility: sed, find and xargs or exec. So, if you are
not so familiar with all of these utilities, then you have to search for
documentation in different places, which makes the task less accessible.

Thanks again,
Arno


Reply to: