All languages

C

You're viewing a free preview. Sign in free to read every script.

Why this exists A tool that behaves like the standard ones (grep, wc) follows a few conventions: flags before arguments, h for help, input from a file or a pipe, results on standard output and problems on standard…

A Real Command-Line Tool with getopt, Standard Input and Exit Codes

Turn a scanner into a proper Unix tool: options parsed with getopt, a usage message, reading from a file or standard input, results to stdout, errors to stderr, and a clean structure with a small main.

Sign in free to read this script, along with the rest of the library.

Sign in free