diff options
| author | Zach DeCook <zachdecook@librem.one> | 2021-02-25 23:45:04 -0500 |
|---|---|---|
| committer | Zach DeCook <zachdecook@librem.one> | 2021-02-25 23:45:04 -0500 |
| commit | 51c72d562be42fd7748192bfd87d7acfe1ac34a6 (patch) | |
| tree | f9431780a0a2e8a20549e66233fbeb6101c93459 /oeb.sh | |
| parent | 63c0ad2f13b65b024c108efa32493825c5b2d1a5 (diff) | |
| download | cgi-bin-51c72d562be42fd7748192bfd87d7acfe1ac34a6.tar.gz | |
oeb: start
Diffstat (limited to 'oeb.sh')
| -rwxr-xr-x | oeb.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/oeb.sh b/oeb.sh new file mode 100755 index 0000000..15c298a --- /dev/null +++ b/oeb.sh @@ -0,0 +1,10 @@ +#!/bin/sh +# parse query +book=John +chstart=3 +chend=3 +vstart=16 +vend=17 +file=$(find oeb/ -name '*'-$book'*') +grep '\c '$chstart $file -A500 | grep '\v '$vstart -A500 \ +| grep '\c '$(($chend + 1)) -B500 | grep '\v '$vend -B500 |
