-
-
28 Apr 1998 02:41:08 UTC
- Distribution: Startup
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues
- Testers (50 / 0 / 0)
- Kwalitee
Bus factor: 0- % Coverage
- License: unknown
- Activity
24 month- Tools
- Download (12.27KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- unknown
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
replace - substitutes text
Use perls regular expressions on a list of files.
SYNOPSIS
Example:
replace --search 'foo' --replace 'bar' --recurse --log *
DESCRIPTION
Replace is a utility to substitute text in a bunch of files. It is used also to demonstrate the use of perl module Startup. You can use perls regular expressions as search and replace strings.
usage: $PROGNAME {--option [arg]} file(s)
search s search pattern replace s replace pattern mode s substitute mode (i=ignore case, g=global) default g log write a logfile gimmick replace pattern shall be "gimmicked" src_base s Regard this as start directory in relative mode dest_base s Store output files based at this directory from_stdin Take input from stdin to_stdout Write output to stdout filemode s New files get access mode s (default 0600) dirmode s New directories get access mode s (default 0700) overwrite Overwrite existing files recurse Operate recursively on directories relative Store files relatively to destdir when in recurse mode suffix s Give output files this suffix
SEE ALSO
AUTHOR
Martin Schwartz <schwartz@cs.tu-berlin.de>.
Module Install Instructions
To install Startup, copy and paste the appropriate command in to your terminal.
cpanm Startup
perl -MCPAN -e shell install Startup
For more information on module installation, please visit the detailed CPAN module installation guide.