aboutsummaryrefslogtreecommitdiffstats
path: root/README
blob: 08f88d5f1cc71cb1be3544fe6c2640f3060ac0cc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
NAME
	luhncheck - Check number with Luhn's algorithm

SYNOPSIS
	luhncheck number ...

DESCRIPTION
	The luhncheck utility checks that a number, containing a
	check digit, is valid according to Luhn's algorithm.

OPTIONS
	The luhncheck utility conforms to the Base Definitions volume
	of POSIX.1-2017, Section 12.2, Utility Syntax Guidelines.

	No options are supported.

OPERANDS
	The following operand is supported:

	number
		Number to check.

STDOUT
	The luhncheck utility will print one line per number, in the
	order they are provided in the command line, to the standard
	output. Each line will be use the format

		"%s is %s\n", number, <"OK" if valid, "invalid" otherwise>.

EXIT STATUS
	The following exit values are returned:

	0	All numbers are valid.

	1	At least one number is invalid.

	2	An error occured.

SEE ALSO
	gluhncheck(1)