pike.git / bin / rsif

version» Context lines:

pike.git/bin/rsif:1: - #! /usr/local/bin/pike - // -*- pike -*- $Id: rsif,v 1.5 2002/04/06 21:54:42 jhs Exp $ + #! /usr/bin/env pike + // -*- pike -*- $Id: rsif,v 1.6 2002/04/06 22:12:52 jhs Exp $    - string version = ("$Revision: 1.5 $"/" ")[1]; + string version = ("$Revision: 1.6 $"/" ")[1];   int verbosity = 1; // interactive   int overwrite = 1; // no backups      void usage(function|void output_fun)   {    if(!output_fun)    output_fun = write;    output_fun(#"rsif [options] <from> <to> <files>      rsif (\"replace string in file\") replaces all occurrences of the string