NAME decr -- Program to remove (or add) CR chars from files, in place. SYNOPSIS decr [-add] [-binok] [-f] ... decr -h -- for this message. DESCRIPTION ------------------------------------------------------------------------------ Removes (or adds) CR characters from files. Such characters are added in by MS-DOS editors, since the Micrsoft standard is terminate each line with CR, NL (whereas Unix uses only NL). The -f option allows disenables checking for options for all succeeding arguments, thus allowing filenames beginning with a hyphen to be handled. Only regular files that have write permission enabled are processed. The files are overwritten in place, but only if they need to be changed. (Actually, the program writes a temp file, and then does rename to move it to the desired name. Thus this will fail if you don't have directory write permission.) If a file does not need to be changed, it is not altered. For each eligible file, if the file contained a CR (was missing a CR), the line is written to the stdout: Removed CRs from or Added CRs to Otherwise (for eligible files), this output line is written: No CRs in or No Missing CRs in Ineligible files (e.g. directories, readonly files, device files, etc.) are indicated by various messages. Binary files (files with a byte with high bit set) are not eligible unless the -binok option is used. Locks out QUIT and INT signals during each file operation, aborting only between files. However, it is possible that a system failure may leave a harmless temporary file in the same directory as the target file. This program uses the rename system call, which should atomically replace the old file with the processed file.