From 77cfffee6177fb0421fa0fce15d6a1875bde4816 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20W=C3=BChrer?= Date: Sat, 18 May 2024 21:04:34 +0200 Subject: manuals, sum-down, radix --- man/man1/ean13.1 | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 man/man1/ean13.1 (limited to 'man/man1/ean13.1') diff --git a/man/man1/ean13.1 b/man/man1/ean13.1 new file mode 100644 index 0000000..f6137c6 --- /dev/null +++ b/man/man1/ean13.1 @@ -0,0 +1,35 @@ +.TH ean13 1 2024-03-15 utils + +.SH NAME +ean13 \- check or compute european article numbers + +.SH SYNOPSIS +.B ean13 +.RI [ arg\ ... ] + +.SH DESCRIPTION +.B ean13 +checks for each argument if it is a valid EAN13 number, +that is a European Article Number that has 13 digits; +or computes the checksum digit if the argument has only 12 digits. + +.SH EXIT STATUS +.TP +.B 0 +If the number is valid or the checksum is computed. + +.TP +.B 1 +If the number is not valid. + +.SH EXAMPLES +.HP +Compute the checksum number: + +.BR ean13 \ 012345678901 + +.HP +Check if the number is a valid EAN13: + +.BR ean13 \ 0123456789012 + -- cgit v1.2.3