Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
The author also wrote the Pure sh Bible (for more portability than bash alone provides).
pray-pi() { local cmd failed_cmds book chapter verse fetch_url for cmd in curl jq; do if ! command -v "${cmd}" >/dev/null 2>&1; then failed_cmds+=",${cmd}" fi done if (( "${#failed_cmds}" > 0 )); then printf -- '%s\n' "The following requirements were not found in PATH: ${failed_cmds/,}" >&2 exit 1 fi book="${1:?No book provided}" chapter="${2:?No chapter provided}" verse="${3:?No verse provided}" fetch_url="https://bible-api.com/${book}%20${chapter}:${verse}" curl -s "${fetch_url}" | jq -r '.text' }