This document describes a Luhn algorithm script that checks if a number is valid. It takes a number as input, performs the Luhn formula checksum on the number, and returns an exit code of 0 if valid or 1 if invalid. It has options to generate or print the check digit or output OK/Not valid. It doubles every other digit, sums the digits, and checks if the total is a multiple of 10.