--- cmp.1.old.txt Thu Jan 29 03:45:05 2009 +++ cmp.1.new.txt Fri Jan 30 15:36:10 2009 @@ -9,32 +9,50 @@ cmp - compare two files SYNOPSIS - cmp [-l | -s] file1 file2 [skip1] [skip2] + /usr/bin/cmp + /usr/bin/cmp [ options ] file1 file2 [skip1] [skip2] + ksh93 + cmp [ options ] file1 file2 [skip1] [skip2] + DESCRIPTION - The cmp utility compares two files. cmp writes no output if - the files are the same. Under default options, if they - differ, it writes to standard output the byte and line - numbers at which the first difference occurred. Bytes and - lines are numbered beginning with 1. If one file is an ini- - tial subsequence of the other, that fact is noted. skip1 and - skip2 are initial byte offsets into file1 and file2 respec- - tively, and can be either octal or decimal. A leading 0 - denotes octal. + cmp compares two files file1 and file2. cmp writes no output if + the files are the same. By default, if the files differ, the byte + and line number at which the first difference occurred are + written to standard output. Bytes and lines are numbered + beginning with 1. -OPTIONS - The following options are supported: + If skip1 or skip2 are specified, or the -i option is specified, + initial bytes of the corresponding file are skipped before + beginning the compare. The skip values are in bytes or can have a + suffix of k for kilobytes or m for megabytes. - -l Write the byte number (decimal) and the differing - bytes (octal) for each difference. + If either file1 or files2 is -, cmp uses standard input starting + at the current location. +OPTIONS + The following options are supported: - -s Write nothing for differing files. Return exit - status only. + -c, --print-chars + Writes control characters as a ^ followed by a + letter of the alphabet and precede characters + that have the high bit set with M-. + -i, --ignore-initial=skip + Sets default skip values for the operands skip1 + and skip2 to skip. The default value is 0. + -l, --verbose Write the decimal byte number and the differing + bytes (in octal) for each difference. + -s, --quiet|silent + Write nothing for differing files; return + non-zero exit status only. + --man, --html, --nroff + Prints builtin manual page in either plain text, + HTML or nroff format. + --help Prints basic help information + --version Prints version information - OPERANDS The following operands are supported: @@ -120,7 +138,7 @@ SEE ALSO - comm(1), diff(1), attributes(5), environ(5), largefile(5), + comm(1), diff(1), ksh93(1), attributes(5), environ(5), largefile(5), standards(5) --- comm.1.old.txt Thu Jan 29 03:45:06 2009 +++ comm.1.new.txt Thu Jan 29 04:58:58 2009 @@ -9,37 +9,49 @@ comm - select or reject lines common to two files SYNOPSIS - comm [-123] file1 file2 + /usr/bin/comm + /usr/bin/comm [ options ] file1 file2 + ksh93 + comm [ options ] file1 file2 + + DESCRIPTION - The comm utility reads file1 and file2, which must be - ordered in the current collating sequence, and produces - three text columns as output: lines only in file1; lines - only in file2; and lines in both files. + comm reads two files file1 and file2 which should be ordered in + the collating sequence of the current locale, and produces three + text columns as output: + 1 Lines only in file1. + 2 Lines only in file2. + 3 Lines in both files. - If the input files were ordered according to the collating - sequence of the current locale, the lines written will be in - the collating sequence of the original lines. If not, the - results are unspecified. + If lines in either file are not ordered according to the + collating sequence of the current locale, the results are not + specified. -OPTIONS - The following options are supported: + If either file1 or file2 is -, comm uses standard input starting + at the current location. - -1 Suppresses the output column of lines unique to - file1. +OPTIONS + The following options are supported: - -2 Suppresses the output column of lines unique to - file2. + -1 Suppress the output column of lines unique to + file1. + -2 Suppress the output column of lines unique to + file2. + -3 Suppress the output column of lines duplicate in + file1 and file2. - -3 Suppresses the output column of lines duplicated in - file1 and file2. + --man, --html, --nroff + Prints builtin manual page in either plain text, + HTML or nroff format. + --help Prints basic help information + --version Prints version information - OPERANDS The following operands are supported: @@ -116,7 +128,7 @@ ____________________________________________________________ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | |_____________________________|_____________________________| - | Availability | SUNWesu | + | Availability | SUNWcsu | |_____________________________|_____________________________| | CSI | enabled | |_____________________________|_____________________________| @@ -138,7 +150,7 @@ SEE ALSO - cmp(1), diff(1), sort(1), uniq(1), attributes(5), + cmp(1), diff(1), ksh93(1), sort(1), uniq(1), attributes(5), environ(5), largefile(5), standards(5) --- cut.1.old.txt Thu Jan 29 03:45:07 2009 +++ cut.1.new.txt Fri Jan 30 14:52:13 2009 @@ -9,99 +9,79 @@ cut - cut out selected fields of each line of a file SYNOPSIS - cut -b list [-n] [file...] + /usr/bin/cut + /usr/bin/cut [ options ] [file ...] - cut -c list [file...] - cut -f list [-d delim] [-s] [file...] + ksh93 + cut [ options ] [file ...] DESCRIPTION - Use the cut utility to cut out columns from a table or - fields from each line of a file; in data base parlance, it - implements the projection of a relation. The fields as - specified by list can be fixed length, that is, character - positions as on a punched card (-c option) or the length can - vary from line to line and be marked with a field delimiter - character like (-f option). cut can be used as a - filter. + cut bytes, characters, or character-delimited fields from one or + more files, contatenating them on standard output. - Either the -b, -c, or -f option must be specified. + The option argument list is a comma-separated or blank-separated + list of positive numbers and ranges. Ranges can be of three + forms. The first is two positive integers separated by a hyphen + (low-high), which represents all fields from low to high. The + second is a positive number preceded by a hyphen (-high), which + represents all fields from field 1 to high. The last is a + positive number followed by a hyphen (low-), which represents all + fields from low to the last field, inclusive. Elements in the + list can be repeated, can overlap, and can appear in any order. + The order of the output is that of the input. - Use grep(1) to make horizontal ``cuts'' (by context) through - a file, or paste(1) to put files together column-wise (that - is, horizontally). To reorder columns in a table, use cut - and paste. + One and only one of -b, -c, or -f must be specified. + If no file is given, or if the file is -, cut cuts from standard + input. The start of the file is defined as the current offset. + + OPTIONS The following options are supported: - list A comma-separated or blank-character- - separated list of integer field numbers (in - increasing order), with optional - to indi- - cate ranges (for instance, 1,4,7; 1-3,8; - -5,10 (short for 1-5,10); or 3- (short for - third through last field)). + -b, --bytes=list + cut based on a list of bytes. + -c, --characters=list + cut based on a list of characters. + -d, --delimiter=delim + The field character for the -f option is set to + delim. The default is the tab character. - -b list The list following -b specifies byte posi- - tions (for instance, -b1-72 would pass the - first 72 bytes of each line). When -b and -n - are used together, list is adjusted so that - no multi-byte character is split. + -f, --fields=list + cut based on fields separated by the delimiter + character specified with the -d optiion. + -n, --nosplit Do not split characters. + -R|r, --reclen=reclen + If reclen > 0, the input will be read as fixed + length records of length reclen when used with + the -b or -c option. - -c list The list following -c specifies character - positions (for instance, -c1-72 would pass - the first 72 characters of each line). + -s, --suppress|only-delimited + Suppress lines with no delimiter characters, when + used with the -f option. By default, lines with + no delimiters will be passsed in untouched. + -D, --line-delimeter|output-delimiter=ldelim + The line delimiter character for the -f option is + set to ldelim. The default is the newline + character. + -N, --nonewline Do not output new-lines at end of each record + when used with the -b or -c option. + --man, --html, --nroff + Prints builtin manual page in either plain text, + HTML or nroff format. + --help Prints basic help information + --version Prints version information -SunOS 5.10 Last change: 29 Apr 1999 1 - - - - - -User Commands cut(1) - - - - -d delim The character following -d is the field del- - imiter (-f option only). Default is tab. - Space or other characters with special mean- - ing to the shell must be quoted. delim can - be a multi-byte character. - - - - -f list The list following -f is a list of fields - assumed to be separated in the file by a - delimiter character (see -d ); for instance, - -f1,7 copies the first and seventh field - only. Lines with no field delimiters will be - passed through intact (useful for table sub- - headings), unless -s is specified. - - - - -n Do not split characters. When -b list and -n - are used together, list is adjusted so that - no multi-byte character is split. - - - - -s Suppresses lines with no delimiter charac- - ters in case of -f option. Unless specified, - lines with no delimiters will be passed - through untouched. - - - OPERANDS The following operands are supported: @@ -141,7 +121,7 @@ To set name to current login name: - example$ name=`who am i | cut -f1 -d' '` + example$ name=$(who am i | cut -f1 -d' ') ENVIRONMENT VARIABLES See environ(5) for descriptions of the following environment @@ -175,88 +155,10 @@ SEE ALSO - grep(1), paste(1), attributes(5), environ(5), largefile(5), - standards(5) + grep(1), paste(1), ksh93(1), attributes(5), environ(5), + largefile(5), standards(5) -DIAGNOSTICS - cut: -n may only be used with -b - - cut: -d may only be used with -f - - - cut: -s may only be used with -f - - - - - - -SunOS 5.10 Last change: 29 Apr 1999 3 - - - - - - -User Commands cut(1) - - - - cut: cannot open Either file cannot - be read or does not - exist. If multiple - files are present, - processing contin- - ues. - - - - cut: no delimiter specified Missing delim on -d - option. - - - - cut: invalid delimiter - - - cut: no list specified Missing list on -b, - -c, or -f option. - - - - cut: invalid range specifier - - - cut: too many ranges specified - - - cut: range must be increasing - - - cut: invalid character in range - - - cut: internal error processing input - - - cut: invalid multibyte character - - - cut: unable to allocate enough memory - - - - - - - - - - - - - SunOS 5.10 Last change: 29 Apr 1999 4 --- paste.1.old.txt Thu Jan 29 03:45:07 2009 +++ paste.1.new.txt Thu Jan 29 04:58:45 2009 @@ -9,109 +9,61 @@ paste - merge corresponding or subsequent lines of files SYNOPSIS - paste [-s] [-d list] file... + /usr/bin/paste + /usr/bin/paste [ options ] [file ...] -DESCRIPTION - The paste utility will concatenate the corresponding lines - of the given input files, and write the resulting lines to - standard output. - The default operation of paste will concatenate the - corresponding lines of the input files. The NEWLINE charac- - ter of every line except the line from the last input file - will be replaced with a TAB character. + ksh93 + paste [ options ] [file ...] - If an EOF (end-of-file) condition is detected on one or more - input files, but not all input files, paste will behave as - though empty lines were read from the files on which EOF was - detected, unless the -s option is specified. +DESCRIPTION + paste concatenates the corresponding lines of a given input file + and writes the resulting lines to standard output. By default + paste replaces the newline character of every line other than the + last input file with the TAB character. -OPTIONS - The following options are supported: + Unless the -s option is specified, if an end-of-file is + encountered on one or more input files, but not all input files, + paste behaves as if empty lines were read from the file(s) on + which end-of-file was detected. - -d list Unless a backslash character (\) appears in list, - each character in list is an element specifying a - delimiter character. If a backslash character - appears in list, the backslash character and one or - more characters following it are an element speci- - fying a delimiter character as described below. - These elements specify one or more delimiters to - use, instead of the default TAB character, to - replace the NEWLINE character of the input lines. - The elements in list are used circularly. That is, - when the list is exhausted, the first element from - the list is reused. + Unless the -s option is specified, paste is limited by the + underlying operating system on how many file operands can be + specified. - When the -s option is specified: + If no file operands are given or if the file is -, paste reads + from standard input. The start of the file is defined as the + current offset. - o The last newline character in a file will not - be modified. +OPTIONS + The following options are supported: - o The delimiter will be reset to the first ele- - ment of list after each file operand is pro- - cessed. + -s, --serial Paste the lines of one file at a time rather than + one line from each file. In this case if the -d + option is specified the delimiter will be reset + to the first in the list at the beginning of each + file. - When the option is not specified: + -d, --delimiters=list + list specifies a list of delimiters. These + delimiters are used circularly instead of TAB to + replace the newline character of the input lines. + Unless the -s option is specified, the delimiter + will be reset to the first element of list each + time a line is processed from each file. The + delimiter characters corresponding to list will + be found by treating list as an ANSI-C string, + except that the \0 sequence will insert the empty + string instead of the null character. + --man, --html, --nroff + Prints builtin manual page in either plain text, + HTML or nroff format. + --help Prints basic help information + --version Prints version information - o The NEWLINE characters in the file specified - by the last file will not be modified. - - -SunOS 5.10 Last change: 20 Dec 1996 1 - - - - - - -User Commands paste(1) - - - - o The delimiter will be reset to the first ele- - ment of list each time a line is processed - from each file. - - If a backslash character appears in list, it and - the character following it will be used to - represent the following delimiter characters: - - - \n Newline character. - - - - - \t Tab character. - - - - \\ Backslash character. - - - - \0 Empty string (not a null character). If \0 - is immediately followed by the character - x, the character X, or any character - defined by the LC_CTYPE digit keyword, the - results are unspecified. - - - If any other characters follow the backslash, the - results are unspecified. - - - -s Concatenate all of the lines of each separate input - file in command line order. The NEWLINE character - of every line except the last line in each input - file will be replaced with the TAB character, - unless otherwise specified by the -d option. - - - OPERANDS The following operand is supported: @@ -119,8 +71,6 @@ one or more of the files, the standard input will be used. The standard input will be read one line at a time, circularly, for each instance of -. - Implementations support pasting of at least 12 file - operands. @@ -179,7 +129,7 @@ ____________________________________________________________ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | |_____________________________|_____________________________| - | Availability | SUNWesu | + | Availability | SUNWcsu | |_____________________________|_____________________________| | CSI | Enabled | |_____________________________|_____________________________| @@ -188,77 +138,9 @@ SEE ALSO + cut(1), grep(1), ksh93(1), pr(1), attributes(5 environ(5), + largefile(5), standards(5) - -SunOS 5.10 Last change: 20 Dec 1996 3 - - - - - - -User Commands paste(1) - - - - cut(1), grep(1), pr(1), attributes(5), environ(5), large- - file(5), standards(5) - -DIAGNOSTICS - "line too long" Output lines are restricted to 511 - characters. - - - - "too many files" Except for -s option, no more than - 12 input files may be specified. - - - - "no delimiters" The -d option was specified with an - empty list. - - - - "cannot open file" The specified file cannot be opened. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -SunOS 5.10 Last change: 20 Dec 1996 4 - - --- print.1.old.txt Fri Jan 30 15:26:43 2009 +++ print.1.new.txt Fri Jan 30 15:34:05 2009 @@ -10,12 +10,14 @@ screen or window SYNOPSIS + /usr/bin/print + print [-CRenprsv] [-f format] [-u fd] [string...] + ksh print [-Rnprsu [n]] [arg]... - ksh93 - print [-Renprs] [-f format] [-u fd] [string...] + print [-CRenprsv] [-f format] [-u fd] [string...] DESCRIPTION @@ -24,7 +26,7 @@ -, the arguments are printed on standard output as described by echo(1). - ksh93 + /usr/bin/print, ksh93 print By default, print writes each string operand to standard output and appends a NEWLINE character. @@ -164,7 +166,13 @@ -u fd Write to file descriptor number fd instead of standard output. The default value is 1. + -v Treat each string as a variable name and write + the value in %B format. Cannot be used with -f. + -C Treat each string as a variable name and write + the value in %#B format. Cannot be used with -f. + + EXIT STATUS The following exit values are returned: --- read.1.old.txt Fri Jan 30 15:26:43 2009 +++ read.1.new.txt Fri Jan 30 16:40:56 2009 @@ -25,7 +25,7 @@ ksh93 - read [-Aprs] [-d delim] [-n nsize] [-N nsize] [-t timeout][-u unit] [vname?prompt] [vname... ] + read [-ACprs] [-d delim] [-n nsize] [-N nsize] [-t timeout][-u unit] [vname?prompt] [vname... ] DESCRIPTION @@ -187,6 +187,8 @@ index 0. + -C Unset var and read var as a compound variable. + -d delim Read until delimiter delim instead of to the end of line. --- typeset.1.old.txt Fri Jan 30 15:26:43 2009 +++ typeset.1.new.txt Fri Jan 30 15:31:09 2009 @@ -10,7 +10,7 @@ butes and values for shell variables and functions SYNOPSIS - typeset [_ HLRZfilrtux [n]] [name [= value]]... + typeset [_ CDHLRZfilrtux [n]] [name [= value]]... whence [-pv] name... @@ -23,6 +23,13 @@ value and type are restored when the function completes. The following list of attributes may be specified: + -C Compound variable. Each name will be a compound + variable. If value names a compound variable it + will be copied to name. Otherwise if the variable + already exists, it will first be unset + + -D Reserved for future usage. + -H This flag provides UNIX to host-name file mapping on non-UNIX machines. @@ -86,6 +93,10 @@ -l All upper-case characters are converted to lower- case. The upper-case flag, -u is turned off. + -m Move. The value is the name of a variable whose + value will be moved to name. The orignal variable + will be unset. Cannot be used with any other + options. -r The given names are marked readonly and these names cannot be changed by subsequent assignment. @@ -174,7 +185,7 @@ SEE ALSO - ksh(1), set(1), sh(1), attributes(5) + ksh(1), ksh93(1), set(1), sh(1), attributes(5) --- uniq.1.old.txt Thu Jan 29 03:45:08 2009 +++ uniq.1.new.txt Fri Jan 30 15:17:20 2009 @@ -9,89 +9,77 @@ uniq - report or filter out repeated lines in a file SYNOPSIS - uniq [-c | -d | -u] [-f fields] [-s char] [ input_file - [output_file]] + /usr/bin/uniq + /usr/bin/uniq [ options ] [infile [outfile]] - uniq [-c | -d | -u] [-n] [ + m] [ input_file - [output_file]] + ksh93 + uniq [ options ] [infile [outfile]] + DESCRIPTION - The uniq utility will read an input file comparing adjacent - lines, and write one copy of each input line on the output. - The second and succeeding copies of repeated adjacent input - lines will not be written. + uniq reads an input, comparing adjacent lines, and writing one + copy of each input line on the output. The second and succeeding + copies of the repeated adjacent lines are not written. - Repeated lines in the input will not be detected if they are - not adjacent. + If the output file, outfile, is not specified, uniq writes to + standard output. If no infile is given, or if the infile is -, + uniq reads from standard input with the start of the file is + defined as the current offset. OPTIONS The following options are supported: - -c Precedes each output line with a count of - the number of times the line occurred in the - input. + -c, --count Output the number of times each line occurred + along with the line. + -d, --repeated|duplicates + Output the first of each duplicate line. + -D, --all-repeated[=delimit] + Output all duplicate lines as a group with an + empty line delimiter specified by delimit: + none Do not delimit duplicate groups. + prepend + Prepend an empty line before each group. + separate + Separate each group with an empty line. + e option value may be omitted. The default value + is none. - -d Suppresses the writing of lines that are not - repeated in the input. + -f, --skip-fields=fields + fields is the number of fields to skip over + before checking for uniqueness. A field is the + minimal string matching the BRE + [[:blank:]]*[^[:blank:]]*. + -i, --ignore-case + Ignore case in comparisons. + -s, --skip-chars=chars + chars is the number of characters to skip over + before checking for uniqueness. If specified + along with -f, the first chars after the first + fields are ignored. If the chars specifies more + characters than are on the line, an empty string + will be used for comparison. - -f fields Ignores the first fields fields on each - input line when doing comparisons, where - fields is a positive decimal integer. A - field is the maximal string matched by the - basic regular expression: + -u, --unique Output unique lines. + -w, --check-chars=chars + chars is the number of characters to compare + after skipping any specified fields and + characters. - [[:blank:]]*[^[:blank:]]* + -n Equivalent to -f fields with fields set to n. - If fields specifies more fields than appear - on an input line, a null string will be used - for comparison. - - - - -s chars Ignores the first chars characters when - doing comparisons, where chars is a positive - decimal integer. If specified in conjunction - with the -f option, the first chars - - - -SunOS 5.10 Last change: 20 Dec 1996 1 - - - - - - -User Commands uniq(1) - - - - characters after the first fields fields - will be ignored. If chars specifies more - characters than remain on an input line, a - null string will be used for comparison. - - - - -u Suppresses the writing of lines that are - repeated in the input. - - - - -n Equivalent to -f fields with fields set to - n. - - - +m Equivalent to -s chars with chars set to m. + --man, --html, --nroff + Prints builtin manual page in either plain text, + HTML or nroff format. + --help Prints basic help information + --version Prints version information - OPERANDS The following operands are supported: @@ -206,7 +194,7 @@ ____________________________________________________________ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | |_____________________________|_____________________________| - | Availability | SUNWesu | + | Availability | SUNWcsu | |_____________________________|_____________________________| | CSI | Enabled | |_____________________________|_____________________________| @@ -215,8 +203,8 @@ SEE ALSO - comm(1), pack(1), pcat(1), sort(1), uncompress(1), attri- - butes(5), environ(5), standards(5) + comm(1), pack(1), pcat(1), ksh93(1), sort(1), uncompress(1), + attributes(5), environ(5), standards(5) --- wc.1.old.txt Thu Jan 29 03:45:09 2009 +++ wc.1.new.txt Thu Jan 29 05:01:56 2009 @@ -10,46 +10,60 @@ file SYNOPSIS - wc [-c | -m | -C] [-lw] [file...] + /usr/bin/wc + /usr/bin/wc [ options ] [file ...] -DESCRIPTION - The wc utility reads one or more input files and, by - default, writes the number of newline characters, words and - bytes contained in each input file to the standard output. - The utility also writes a total count for all named files, - if more than one input file is specified. + ksh93 + wc [ options ] [file ...] - wc considers a word to be a non-zero-length string of char- - acters delimited by white space (for example, SPACE, TAB). - See iswspace(3C) or isspace(3C). +DESCRIPTION + wc reads one or more input files and, by default, for each file + writes a line containing the number of newlines, words, and bytes + contained in each file followed by the file name to standard + output in that order. A word is defined to be a non-zero length + string delimited by iswspace(3C) or isspace(3C) characters. -OPTIONS - The following options are supported: + If more than one file is specified, wc writes a total count for + all of the named files with total written instead of the file + name. - -c Counts bytes. + By default, wc writes all three counts. Options can specified so + that only certain counts are written. The options -c and -m are + mutually exclusive. + If no file is given, or if the file is -, wc reads from standard + input and no filename is written to standard output. The start of + the file is defined as the current offset. - -C Same as -m. +OPTIONS + The following options are supported: + -l, --lines List the line counts. + -w, --words List the word counts. Delimiting characters + are Extended Unix Code (EUC) characters from any code + set defined by iswspace(). - -l Counts lines. + -c, --bytes|chars + List the byte counts. + -m|C, --multibyte-chars + List the character counts. + -q, --quiet Suppress invalid multibyte character warnings. - -m Counts characters. + -L, --longest-line|max-line-length + List the longest line length. + --man, --html, --nroff + Prints builtin manual page in either plain text, + HTML or nroff format. + --help Prints basic help information + --version Prints version information - -w Counts words delimited by white space characters or - new line characters. Delimiting characters are - Extended Unix Code (EUC) characters from any code - set defined by iswspace(). - - - If no option is specified, the default is -lwc (counts lines, words, and bytes.) @@ -113,7 +127,7 @@ SEE ALSO - cksum(1), isspace(3C), iswalpha(3C), iswspace(3C), + cksum(1), ksh93(1), isspace(3C), iswalpha(3C), iswspace(3C), setlocale(3C), attributes(5), environ(5), largefile(5), standards(5)