Modifile 1.0.4 review
DownloadModifile application applies Perl substitution expressions to files, modifying the name and/or the contents of the file and making ba
|
|
Modifile application applies Perl substitution expressions to files, modifying the name and/or the contents of the file and making backup versions of the original file as needed.
Modifile project also checks for write permissions before applying any changes, and provides a list of the files that would have been changed, yet did not have write permission.
Options:
--backup, --nobackup
Backup the changed files. The default is --backup.
--basenames, --nobasenames
Change the base names of the files, that is, foo.txt of the full name /home/jrandom/proj/bar/foo.txt. The default is --basenames. See also the
--dirnames option.
--confirm
Process files interactively, getting user confirmation when the substitutions would result in a change.
--contents, --nocontents
Change the contents of the files. The default is --contents.
--count NUM
Stop substitutions after count lines have been modified.
--dirnames, --nodirnames
Change the directory names of the files, that is, /home/jrandom/proj/bar of the full name /home/jrandom/proj/bar/foo.txt. The default is --dirnames. See also the
--basenames option.
--execute, --noexecute
Whether to change the file names and contents. The default is --execute.
--file FILE
Read the given file, which contains a list of all expressions to be evaluated, in the format:
s/foo/bar/g
tr/a-z/A-Z/
# make fooBar into FOO_BAR:
s/([a-z]+)([A-Z])/U$1_$2/g
Both spaces and script-style comments (i.e., beginning with '#') are allowed in the substitution file.
If the --file option is not used, the substitution expression will be assumed to be the next command-line argument after all options have been processed.
--quiet
Run with minimal output.
--readonly COMMAND
If a file is read-only, execute the given command on the file. For example:
--readonly "chmod u+w"
--readonly "p4 edit" (set status to editable in the Perforce CM system)
--verbose
Run with debugging output.
What's New in This Release:
Fixes an issue in applying substitution only once per file.
Modifile 1.0.4 search tags