wc man page on OpenIndiana

Man page or keyword search:  
man Server   20441 pages
apropos Keyword Search (all sections)
Output format
OpenIndiana logo
[printable version]

wc(1)				 User Commands				 wc(1)

NAME
       wc - display a count of lines, words and characters in a file

SYNOPSIS
   /usr/bin/wc
       /usr/bin/wc [options][file...]

   ksh93
       wc [options][file...]

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 isspace(3C)
       characters.

       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.

       By default, wc writes all three counts. Options can specified  so  that
       only  certain  counts  are  written. The -c and -m options are mutually
       exclusive.

       If no file is specified, 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.

OPTIONS
       The following options are supported:

       -c
       --bytes | chars

	   List the byte counts.

       -l
       --lines

	   List the line counts.

       -L
       --longest-line | max-line-length

	   List the longest line length.

       -m | C
       --multibyte-chars

	   List the character counts.

       -q
       --quiet

	   Suppress invalid multibyte character warnings.

       -w
       --words

	   List the word counts. Delimiting characters are Extended Unix  Code
	   (EUC) characters from any code set defined by isspace(3C).

       --help

	   Prints basic help information.

       --man
       --html
       --nroff

	   Prints  built-in  manual  page  in either plain text, HTML or nroff
	   format.

       --version

	   Prints version information.

       If no option is specified, the default is -lwc  (counts	lines,	words,
       and bytes.)

OPERANDS
       The following operand is supported:

       file    A  path	name  of an input file. If no file operands are speci‐
	       fied, the standard input is used.

USAGE
       See largefile(5) for the description of the behavior of wc when encoun‐
       tering files greater than or equal to 2 Gbyte ( 2^31 bytes).

ENVIRONMENT VARIABLES
       See  environ(5) for descriptions of the following environment variables
       that affect the execution of wc: LANG, LC_ALL,  LC_CTYPE,  LC_MESSAGES,
       and NLSPATH.

EXIT STATUS
       0     Successful completion.

       >0    An error occurred.

ATTRIBUTES
       See attributes(5) for descriptions of the following attributes:

       ┌─────────────────────────────┬─────────────────────────────┐
       │      ATTRIBUTE TYPE	     │	    ATTRIBUTE VALUE	   │
       ├─────────────────────────────┼─────────────────────────────┤
       │Availability		     │SUNWcs			   │
       ├─────────────────────────────┼─────────────────────────────┤
       │CSI			     │Enabled			   │
       ├─────────────────────────────┼─────────────────────────────┤
       │Interface Stability	     │Committed			   │
       ├─────────────────────────────┼─────────────────────────────┤
       │Standard		     │See standards(5).		   │
       └─────────────────────────────┴─────────────────────────────┘

SEE ALSO
       cksum(1),  ksh93(1),  isspace(3C),  iswalpha(3C),  iswspace(3C), setlo‐
       cale(3C), attributes(5), environ(5), largefile(5), standards(5)

SunOS 5.11			  29 Nov 2009				 wc(1)
[top]

List of man pages available for OpenIndiana

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net