ThinkThen

Pick one line of the evidence

find: pick the one line that best answers a question.

find prints the line with the 30 day refund deadline.
question="Which line gives the refund deadline?"

cat <<'EOF' |
Returns need the original receipt.
Refunds are issued within 30 days of purchase.
Shipping is free on orders over $50.
Gift cards cannot be exchanged for cash.
EOF
thinkthen find "$question"
Output
Refunds are issued within 30 days of purchase.
exit 0: a line came back

You give it a question and 2 to 255 lines or records, or 2 to 254 with --none. You get back the one line that fits best.

Read the answer

Without --none, find must pick a line. When nothing fits, the line it picks is wrong. --none lets it say nothing fits.

Exit codeWhat it means
0a line came back
3nothing fits, under --none
2usage or input error
4the backend failed or refused, as it does for evidence over the size limit
5a local failure
70a defect in the tool

Call it from your language

The Bash example opens this page.

Jobs that use find

Watch find answer questions about Beatles songs: find picks one from many.