Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ wc(1) — SunOS 3.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

WC(1)  —  USER COMMANDS

NAME

wc − word count

SYNOPSIS

wc [ −lwc ] [ file ... ]

DESCRIPTION

Wc counts lines, words, and characters in the named files, or in the standard input if no file names appear.  A word is a string of characters delimited by spaces, tabs, or newlines. 

OPTIONS

If an argument beginning with one of ‘lwc’ is present, the specified counts are selected by the letters:

lCount lines. 

wCount words. 

cCount characters. 

The default is −lwc (count lines, words, and characters). 

EXAMPLE

angel% wc /usr/man/man1/{csh.1,sh.1,telnet.1}
18761122365895 /usr/man/man1/csh.1
674331020338 /usr/man/man1/sh.1
26011106834 /usr/man/man1/telnet.1
28101564393067 total
angel%

Sun Release 3.0β  —  Last change: 1 November 1983

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