An open API service indexing awesome lists of open source software.

https://github.com/gpalleschi/reponere

Reponere is a bash utility script to replace values in ascii files, the name is latin translation of english word "replace".
https://github.com/gpalleschi/reponere

bash command-line-tool lc regular-expression replace script utility

Last synced: 7 months ago
JSON representation

Reponere is a bash utility script to replace values in ascii files, the name is latin translation of english word "replace".

Awesome Lists containing this project

README

          

###
# Reponere

Reponere is a bash utility script to replace values in ascii files, the name is latin translation of english word "replace".

Script accepts these options [Not positional] :


Option
Description


[-h]
for Help


[-r]
for Recursive search `[Optional if not present take only files in directory]`


[-fv]
for File contains couple old value, new value separated by space `[Optional]`


[-p]
for Directory path where are presentes file to substitute `[Optional if not present take execution directory]`


[-f]
for file names to take for substitutions `[Optional if not present take all files, is expressed with a regular expression]`


[-o]
old value `[Optional]`


[-n]
new value `[Optional]`


[-e]
suffix for file modified `[Optional if is not present suffix is .wrk]`


[-d]
debug mode show differences in files `[Optional]`

Examples of execution :

reponere -r -opippo -npluto -f*.txt
reponere -fv./filevalues.txt -p./DirectoryToWork
reponere -fv./filevalues.txt -p./DirectoryToWork -f*.txt -d

### Prerequisites

None

## Built With

* [Visual Code Editor](https://code.visualstudio.com)

## Authors

* **Giovanni Palleschi** - [gpalleschi](https://github.com/gpalleschi)

## License

This project is licensed under the GNU GENERAL PUBLIC LICENSE 3.0 License - see the [LICENSE](LICENSE) file for details