Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ wc(1) — UnixWare 2.01

Media Vault

Software Library

Restoration Projects

Artifacts Sought






       wc(1)                                                          wc(1)


       NAME
             wc - word count

       SYNOPSIS
             wc [-lwc] [file . . .]

       DESCRIPTION
             wc counts the number of newline characters, words, and bytes
             in the named files, or in the standard input if no file
             appears.  It also keeps a total count for all named files.

             A word is a maximal string of characters delimited by white
             space.  White space is a sequence of characters designated as
             isspace in the current locale, as set by LC_CTYPE [see LANG on
             environ(5)].  In the C locale, white space is one of the
             following characters: space, newline, horizontal tab, vertical
             tab, formfeed, carriage return.

             wc processes supplementary code set characters according to
             the locale specified in the LC_CTYPE environment variable.
             Supplementary code set characters are ignored as possible
             white space characters, and in word counts.

             The standard output for each file is the same as the output of
             printf(1) given this input:
                   "%d %d %d %s\n" newlines words bytes file

             For every option that is not specified, the corresponding
             ``%d '' is not written.  If no file is given, the `` %s'' is
             omitted.  For the totals line, the file is replaced with the
             locale's equivalent to ``total'' [in the C locale, ``total''
             is written].

       OPTIONS
             -l    Report the number of newline characters (lines).

             -w    Report the number of words.

             -c    Report the number of bytes.

             If none of the options are specified, the default is
             equivalent to -lwc.

       FILES




                           Copyright 1994 Novell, Inc.               Page 1













      wc(1)                                                          wc(1)


            /usr/lib/locale/locale/LC_MESSAGES/uxcore
                  language-specific message file [See LANG on environ(5).]














































                          Copyright 1994 Novell, Inc.               Page 2








Typewritten Software • bear@typewritten.org • Edmonds, WA 98026