1 changed files with 19 additions and 1 deletions
@ -1,3 +1,21 @@ |
|||||||
# stanza |
# stanza |
||||||
|
|
||||||
Like grep, but for delimited blocks of text |
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 |
||||||
|
|
||||||
|
|||||||
Loading…
Reference in new issue