Skip to content

v0.1.1 - 12/10/2023

Latest
Compare
Choose a tag to compare
@theiskaa theiskaa released this 12 Oct 10:17
· 1 commit to main since this release
7bc3944

Resolved: #7


Added -w/--word option.

rp {OPTIONS} {X} {Y} ... {Z}

The syntax of the replace involves three main components: {OPTIONS}, {X}, {Y}, and one or more instances of {Z}. The components are explained below:

  • {OPTIONS}: You can use the -w or --word option to enable word-based replacements, ensuring an exact, space-free match for segments to be replaced.
  • {X} and {Y}: These are both strings representing the source and target for replacement, respectively. By specifying {X} as the content to be replaced and {Y} as the content to replace it with, you control what changes are made within the files.
  • {Z} elements: These denote the files in which the replacement operation will take place. Each {Z} can refer to a folder or file name, allowing you to define the scope of files to be included in the replacement operation. If {Z} is not provided at all, the "replace" operation will be applied to all matching values found under the current folder. This means that any occurrence of {X} within the files located in the current directory will be replaced with {Y}.