NAME

subst - Greple module for text search and substitution

VERSION

Version 2.02

SYNOPSIS

greple -Msubst --dict dictionary [ options ]

--check=[ng,ok,any,outstand,all]
--select=N
--linefold
--stat
--diff
--diffcmd command
--replace
--create

DESCRIPTION

This greple module supports search and substitution for text based on dictionary file.

Dictionary file is given by --dict option and contians pattern and correct string pairs.

greple -Msubst --dict DICT

If the dictionary file cotains following data:

colou?r      color
cent(er|re)  center

Then above command find first pattern which does not match to second string, that is "colour" and "centre" in this case.

Field "//" in dictionary file is ignored, so this file can be written like this:

colou?r      //  color
cent(er|re)  //  center

You can use same file by greple's -f option and string after "//" is ignored as a comment in that case.

greple -f DICT ...

LICENSE

Copyright (C) Kazumasa Utashiro.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO

https://github.com/kaz-utashiro/greple

https://github.com/kaz-utashiro/greple-subst

AUTHOR

Kazumasa Utashiro