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

Bug#284017: ITP: chgrep -- change oldpattern to newpattern in files



Hi,

On Thu, Dec 02, 2004 at 11:43:13PM +0100, Olivier Lemaire wrote:
> Package: wnpp
> Severity: wishlist
> 
> 
> * Package name    : chgrep
>   Version         : 1.2.4
>   Upstream Author : Bartosz <bartek@bmk.bz>
> * URL             : http://www.bmk.bicom.pl/chgrep/
> * License         : (PL
                      ^^^
What is this license exactly? Is it free?


>   Description     : change oldpattern to newpattern in files
> 
> Description: change oldpattern to newpattern in files
>  Chgrep searches the input files (or standard input if no files
>  are named) for oldstring and changes them to newstring.
>  If some file and file.lock exist then chgrep leaves both files
>  unchanged.
>  You can write NEWPATTERN as "NULL" to clear OLDPATTERNE, i.e,
>  "chgrep oldstring NULL somefile.c".
> 
> A proposal package, tested on i386 may be found in this
> repository (testing main): 
> deb http://olivier-lemaire.org/debian testing main
> 
> I'm willing to maintain this package.
> 
> Any comments/critics/flame => olem@olivier-lemaire.org
> as this is my first debian package.

Well, to be honnest, I have some doubts about the usefullness of this 
package? Can't it always be replaced by a trivial sed command?

Moreover, what if I want to replace all instances of some pattern with 
NULL (yes, those 4 updase letters)? Is there at least some way I can 
escape it? Why not simply using a empty string when one wants to remove 
all instances of some pattern?


Cheers,

Nicolas



Reply to: