๐Ÿ“ฆ veggiemonk / inbtw

small Go utility to extract the text in between two tags

โ˜… 0 stars โ‘‚ 0 forks ๐Ÿ‘ 0 watching โš–๏ธ Apache License 2.0
clidocsdocumentationgogolangsedtext-processingtools
๐Ÿ“ฅ Clone https://github.com/veggiemonk/inbtw.git
HTTPS git clone https://github.com/veggiemonk/inbtw.git
SSH git clone git@github.com:veggiemonk/inbtw.git
CLI gh repo clone veggiemonk/inbtw
Julien Bisconti Julien Bisconti gitignore 6e57495 2 years ago ๐Ÿ“ History
๐Ÿ“‚ main View all commits โ†’
๐Ÿ“ .bingo
๐Ÿ“ .github
๐Ÿ“ testdata
๐Ÿ“„ .gitignore
๐Ÿ“„ go.mod
๐Ÿ“„ go.sum
๐Ÿ“„ LICENSE
๐Ÿ“„ main_test.go
๐Ÿ“„ main.go
๐Ÿ“„ README.md
๐Ÿ“„ README.md

inbtw

inbtw (a.k.a. "in between"), is a small utility to extract the text in between two tags.

``bash mdox-exec="inbtw" mdox-expect-exit-code=2 inbtw extracts the text between tags. A tag is defined by "// [START " and "// [END " Example for a file containing: // [START mytag] var Bla = "bla" // [END mytag] executing: > inbtw -tag mytag -f myfile.go will yield: var Bla = "bla" Usage of inbtw: -f string file(s) to parse, multiple files can be separated by ',', '-' for stdin. -tag string tag containing the text to extract. %%CODEBLOCK0%%shell go install github.com/veggiemonk/inbtw@latest ``