Skip to content

ekg/strswap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

strswap

Swap string patterns listed one per line in an input file

building

Use cargo to build:

cargo install --force --path .

usage

Given a set of patterns:

aa bb
ce do
xo ee

We can rewrite a file:

aaaace ao do cece xo xxxo

... like this:

strswap -s patterns.txt -i text.txt >rewritten.txt
# bbbbdo ao do dodo ee xxee

The patterns are applied in order given in the file.

About

command line tool to swap string patterns in text files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages