diff options
| -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 |
