Hi,
I need to replace different patterns in a text file, kind of a batch search/replace, and the patterns should be saved and editable to use in other occasions.
For example, an application that would read a pattern file like this:
So a text file like this
would be changed to
I want to be able to reuse the pattern file, with eventual edits, in other text files. This doesn't need to change multiple text files, just one each time.
I've looked at Alt. Find & Replace extension to libreoffice writer but it's not obvious how to create batch files, the examples given are quite complex.
Any suggestions for an easy GUI or bash script?
Thanks.
I need to replace different patterns in a text file, kind of a batch search/replace, and the patterns should be saved and editable to use in other occasions.
For example, an application that would read a pattern file like this:
Code:
"0,01" "0.01"
"0,02" "0.02"
"x y" "X-Y"
...
Code:
x y 0,01 0,02 z 0.00
Code:
X-Y 0.01 0.02 z 0.00
I've looked at Alt. Find & Replace extension to libreoffice writer but it's not obvious how to create batch files, the examples given are quite complex.
Any suggestions for an easy GUI or bash script?
Thanks.