NAME newform - change the format of a text file SYNOPSIS newform [-s][-in][-on][-bn][-en][-pn][-an][-ck][-ln][-z][files...] DESCRIPTION newform reads lines from the named files, or the standard input if no input file is named, and reproduces the lines on the standard output. Lines are reformatted in accordance with command line options in effect. Except for -s, command line options may appear in any order, and may be repeated. Command line options are processed in the order specified, this means that option sequences like "-e15 -l60" will yield results different from "-l60 -e15". Options are applied to all files on the command line. If you specify "-" as a file name, standard input will be used. -s Shears off leading characters on each line up to the first tab and places up to 8 of the sheared characters at the end of the line. If more than 8 characters (not counting the first tab) are sheared, the eighth character is replaced by a * and any characters to the right of it are discarded. The first tab is always discarded. An error message and program exit will occur if this option is used on a file without a tab on each line. The sheared off characters are saved internally until all other options specified are applied to that line. The characters are then added at the end of the processed line. -in Input tab specification : expands tabs to spaces, according to the given tab width. n may be 0 to stop tab expansion. -on Output tab specification : replaces spaces by tabs, according to the given tab width. n may be 0 to stop space conversion on output. -bn Truncate n characters from the beginning of the line when the line length is greater than the effective line length (see -l). Default is to truncate the number of characters necessary to obtain the effective line length. The default value is used when -b with no n is used. -en Same as -bn except that characters are truncated from the end of the line. -pn Prefix n characters (see -c) to the beginning of a line when the line length is less than the effective line length. Default is to prefix the number of characters necessary to obtain the effective line length. -an Same as -pn except characters are appended to the end of a line. -ck Change the prefix/append character to k. Default character is a space. If k is missing, space is assumed. -ln Set the effective line length to n characters. If n is not entered, -l defaults to 80. The default line length without the -l option is 80 characters. Note that tabs are considered to be one character (use -i to expand tabs to spaces). -z Delete spaces and tabs at the beginning of a line. RETURN CODES 0 if all went well 1 in case of bad argument (fatal) 2 if at least one file couldn't be opened (non fatal) 13 if there's no tab in an input line with -s option (fatal) CHANGES FROM UNIX VERSION -f option not supported n cannot be -- for -i and -o option added -z option AUTHOR Denis GOUNELLE Last modified 04-Sep-92