bbl

Read, search and index the Bible on the command line -- Greek, Latin, KJV, Knox, RSV, and more
git clone git://git.wilsonrgheen.com/bbl
Log | Files | Refs | README | LICENSE

commit 12beeeefee56efdd7a84c3bd5a4ef28a5be8ddc3
parent 75b088b0b02ae5486a9e1c77321a732bae9604ec
Author: Wilson Gheen <wilson@wilsonrgheen.com>
Date:   Sun, 18 Apr 2021 10:17:53 -0500

Added long options to getopts

Diffstat:
MREADME.md | 35+++++++++++++++++++++++++++++++++++
Mbbl.sh | 2+-
2 files changed, 36 insertions(+), 1 deletion(-)

diff --git a/README.md b/README.md @@ -7,6 +7,7 @@ This implementation allows for numerous translations/versions of the Bible to be ## Usage +<<<<<<< HEAD usage: bbl [flags] [bible] [reference...] Flags: @@ -38,10 +39,44 @@ This implementation allows for numerous translations/versions of the Bible to be /<Search> All verses that match a pattern +======= +``` +usage: bbl [flags] [bible] [reference...] + + Flags: + -l, --list list books + -W, --no-line-wrap no line wrap + -c, --cat echo text to STDOUT + -h, --help show help + Bible: + -d, --douay Douay-Rheims Bible + -g, --greek Greek Bible (Septuagint + SBL NT) + -j, --jerusalem New Jerusalem Bible + -k, --kjv King James Bible + -n, --knox Knox Bible + -v, --vulgate Clementine Vulgate + + Reference types: + <Book> + Individual book + <Book>:<Chapter> + Individual chapter of a book + <Book>:<Chapter>:<Verse>[,<Verse>]... + Individual verse(s) of a specific chapter of a book + <Book>:<Chapter>-<Chapter> + Range of chapters in a book + <Book>:<Chapter>:<Verse>-<Verse> + Range of verses in a book chapter + <Book>:<Chapter>:<Verse>-<Chapter>:<Verse> + Range of chapters and verses in a book + + /<Search> + All verses that match a pattern <Book>/<Search> All verses in a book that match a pattern <Book>:<Chapter>/<Search> All verses in a chapter of a book that match a pattern +``` ## Note diff --git a/bbl.sh b/bbl.sh @@ -62,7 +62,7 @@ set_bible() { BIBLE=$1 } -opts="$(getopt -o lWchdgjknv -l list,no-line-wrap,cat,help,vulgate -- "$@")" +opts="$(getopt -o lWchdgjknv -l list,no-line-wrap,cat,help,douay,greek,jerusalem,kjv,knox,vulgate -- "$@")" eval set -- "$opts" while [ $# -gt 0 ]; do case $1 in