canon(1) canon(1) NAME canon - file canonicalization SYNOPSYS canon [options] [infile [outfile]] Options: [-hv] [--force] [--help] [--version] DESCRIPTION Canonicalize a plain text file. The canonicalization converts text with a sequence at the end of a line of text, no trailing spa- ces or tabs on a line of text, and no trailing blank lines. The input file can use any of the traditional approaches to line termi- nation. In DOS/Windows, text lines end with a Carriage Return (CR) followed by a Line Feed (LF). In Unix, text lines end with a single Newline character, which is a Line Feed (LF) character. In Macintosh, text lines end with a single Newline character, which is a Carriage Return (CR) character. If no infile is provided, then stdin is used. If no outfile is provided, then stdout is used. OPTIONS The following options are available: -h --help Print online help. -v --version Print version information. EXAMPLES Get input from stdin and write output to stdout. canon Get input from a.txt and write output to stdout. canon a.txt Canonicalize a.txt, and write the output to b.txt. canon a.txt b.txt SEE ALSO unix2dos(1) dos2unix(1) iconv(1) 2013 canon 1.0 canon(1)