Skip to content

kenplix/replacer-CLI-utility

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

Replacer

CLI program to replace text in files.

With its help, you can do something similar to this.
It is useful to use if you need to replace some template text in large files.

How to run?

  1. Clone or download this repository
  2. Run from the terminal as: ./replacer.py

Examples of using

python3 replacer.py -o <old text> -n <new text> --file <file path>
python3 replacer.py -o <starting point> -n <end point> --file <file path> --insertion <insert value>

Аlso you can use

MacOS : sed -i '' 's/old-text/new-text/g' test_data1.txt
Linux : sed -i 's/old-text/new-text/g' test_data1.txt

About

CLI program to replace text in files

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages