Skip to content

taskie/reinc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

reinc

include files using RegExp

Usage

reinc -P '(?m)^@(.+?)@\n' -o out.txt in.txt

or

reinc -P '(?m)^@(.+?)@\n' - <in.txt >out.txt

Input file (in.txt)

---
@parts/index.txt@
---

Included file (parts/index.txt)

@hello.txt@

Included file (parts/hello.txt)

Hello, world!

Output file (out.txt)

---
Hello, world!
---

License

Apache License 2.0

About

include files using RegExp

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published