Skip to content

Comments

recursive_multiple_files_find_replace_regex_colorized.py#24

Merged
rawktron merged 1 commit intomasterfrom
unknown repository
Dec 12, 2017
Merged

recursive_multiple_files_find_replace_regex_colorized.py#24
rawktron merged 1 commit intomasterfrom
unknown repository

Conversation

@ghost
Copy link

@ghost ghost commented Nov 19, 2017

usage: find-replace-in-files-regex.py [-h] [--dir DIR] --search-regex
                                      SEARCH_REGEX --replace-regex
                                      REPLACE_REGEX [--glob GLOB] [--dry-run]
                                      [--create-backup] [--verbose]
                                      [--print-parent-folder]
                                      [--list-non-matching]

DESCRIPTION:
    Find and replace recursively from the given folder using regular expressions

optional arguments:
  -h, --help            show this help message and exit
  --dir DIR, -d DIR     folder to search in; by default current folder
  --search-regex SEARCH_REGEX, -s SEARCH_REGEX
                        search regex
  --replace-regex REPLACE_REGEX, -r REPLACE_REGEX
                        replacement regex
  --glob GLOB, -g GLOB  glob pattern, i.e. *.html
  --dry-run, -dr        don't replace anything just show what is going to be
                        done
  --create-backup, -b   Create backup files
  --verbose, -v         Show files which don't match the search regex
  --print-parent-folder, -p
                        Show the parent info for debug
  --list-non-matching, -n
                        Supress colors

USAGE:
    find-replace-in-files-regex.py -d [my_folder] -s <search_regex> -r <replace_regex> -g [glob_pattern]

usage: find-replace-in-files-regex.py [-h] [--dir DIR] --search-regex
                                      SEARCH_REGEX --replace-regex
                                      REPLACE_REGEX [--glob GLOB] [--dry-run]
                                      [--create-backup] [--verbose]
                                      [--print-parent-folder]
                                      [--list-non-matching]

DESCRIPTION:
    Find and replace recursively from the given folder using regular expressions

optional arguments:
  -h, --help            show this help message and exit
  --dir DIR, -d DIR     folder to search in; by default current folder
  --search-regex SEARCH_REGEX, -s SEARCH_REGEX
                        search regex
  --replace-regex REPLACE_REGEX, -r REPLACE_REGEX
                        replacement regex
  --glob GLOB, -g GLOB  glob pattern, i.e. *.html
  --dry-run, -dr        don't replace anything just show what is going to be
                        done
  --create-backup, -b   Create backup files
  --verbose, -v         Show files which don't match the search regex
  --print-parent-folder, -p
                        Show the parent info for debug
  --list-non-matching, -n
                        Supress colors

USAGE:
    find-replace-in-files-regex.py -d [my_folder] -s <search_regex> -r <replace_regex> -g [glob_pattern]
@ghost ghost changed the title find_replace_regex_colorized.py recursive_multiple_files_find_replace_regex_colorized.py Nov 19, 2017
@rawktron rawktron merged commit fcf94d2 into ActiveState:master Dec 12, 2017
@ghost ghost deleted the patch-1 branch March 7, 2018 22:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants