Like grep, but for delimited blocks of text
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Ben Savage 60eada2157 Updated readme with help output 6 years ago
.gitignore Initial commit 6 years ago
LICENSE Initial commit 6 years ago
README.md Updated readme with help output 6 years ago
stanza fixed newline \r bug 7 years ago

README.md

stanza

Like grep, but for delimited blocks of text

Usage: stanza [-h] [-1] [-d] [-m /r/] [-c /r/] [-f FILE] open close

Output lines based on complex criteria

positional arguments: open Regex to open the stanza start buffering on close Regex to close a stanza and output buffer

optional arguments: -h, --help show this help message and exit -1, --oneline Output each stanza on one line -d, --debug Debug -m /r/, --match /r/ Regex to indicate a valid/desired stanza to output -c /r/, --callback /r/ A callback to run for each stanza -f FILE, --file FILE File to operate on, defaults to stdin