Giter Site home page Giter Site logo

c-bible's Introduction

c-bible

Build Status

The easiest way to quickly search biblical texts from a unix terminal

Dependencies

  • make
  • gcc

Installation

make

Usage

./bible 'jesus wept'

Command Line Arguments

-b: book -- specify book to search within

    ./bible -b mat thief
    ./bible -b matthew thief

    Note: books names are case insensitive and work with either 3 digit abbreviation or full name.

    See below for list of books in name, abbreviation format.

-c: chapter -- specify chapter or chapter range to search within.

    ./bible -b mat -c 5 blessed   # will search in all of chapter Matthew 5
    ./bible -b mat -c 5-7 blessed # will search in all of Matthew 5-7
    ./bible -b mat -c 5- blessed # will search in all of Matthew, starting at chapter 5, going through the rest of the book.

-v: verse -- specify verse or verse range to search within.

    ./bible -b mat -c 4 -v 1-7 jesus # search Matthew 4:1-7

-n: count mode -- prints number of results only

    ./bible -c babylon
    Number of results: 265

-d: debug mode -- print debug information

NOTE

You do not have to specify a search param. Just typing

./bible

Will output the entire text. Individual flags make the query more specific e.g.:

./bible -b Matthew

prints out the entire book of Matthew.

./bible -b Matthew -c 5

prints out all of Matthew 5, etc. You can simply keep adding flags to get more specific.

Available books for searching

book_t books[]= {
    {"Genesis","gen"},
    {"Exodus","exo"},
    {"Leviticus","lev"},
    {"Numbers","num"},
    {"Deuteronomy","deu"},
    {"Joshua","jos"},
    {"Judges","jdg"},
    {"Ruth","rut"},
    {"1 Samuel","sa1"},
    {"2 Samuel","sa2"},
    {"1 Kings","kg1"},
    {"2 Kings","kg2"},
    {"1 Chronicles","ch1"},
    {"2 Chronicles","ch2"},
    {"Ezra","ezr"},
    {"Nehemiah","neh"},
    {"Esther","est"},
    {"Job","job"},
    {"Psalms","psa"},
    {"Proverbs","pro"},
    {"Ecclesiastes","ecc"},
    {"Song of Solomon","sol"},
    {"Isaiah","isa"},
    {"Jeremiah","jer"},
    {"Lamentations","lam"},
    {"Ezekiel","eze"},
    {"Daniel","dan"},
    {"Hosea","hos"},
    {"Joel","joe"},
    {"Amos","amo"},
    {"Obadiah","oba"},
    {"Jonah","jon"},
    {"Micah","mic"},
    {"Nahum","nah"},
    {"Habakkuk","hab"},
    {"Zephaniah","zep"},
    {"Haggai","hag"},
    {"Zechariah","zac"},
    {"Malachi","mal"},
    {"Matthew","mat"},
    {"Mark","mar"},
    {"Luke","luk"},
    {"John","joh"},
    {"Acts","act"},
    {"Romans","rom"},
    {"1 Corinthians","co1"},
    {"2 Corinthians","co2"},
    {"Galatians","gal"},
    {"Ephesians","eph"},
    {"Philippians","phi"},
    {"Colossians","col"},
    {"1 Thessalonians","th1"},
    {"2 Thessalonians","th2"},
    {"1 Timothy","ti1"},
    {"2 Timothy","ti2"},
    {"Titus","tit"},
    {"Philemon","plm"},
    {"Hebrews","heb"},
    {"James","jam"},
    {"1 Peter","pe1"},
    {"2 Peter","pe2"},
    {"1 John","jo1"},
    {"2 John","jo2"},
    {"3 John","jo3"},
    {"Jude","jde"},
    {"Revelation","rev"},
};

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.