Deleted Added
sdiff udiff text old ( 68963 ) new ( 81622 )
full compact
1.\" Copyright (c) 1991, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" This code is derived from software contributed to Berkeley by
5.\" the Institute of Electrical and Electronics Engineers, Inc.
6.\"
7.\" Redistribution and use in source and binary forms, with or without
8.\" modification, are permitted provided that the following conditions

--- 19 unchanged lines hidden (view full) ---

28.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33.\" SUCH DAMAGE.
34.\"
35.\" @(#)wc.1 8.2 (Berkeley) 4/19/94
36.\" $FreeBSD: head/usr.bin/wc/wc.1 81622 2001-08-14 10:01:54Z ru $
37.\"
38.Dd April 19, 1994
39.Dt WC 1
40.Os
41.Sh NAME
42.Nm wc
43.Nd word, line, and byte count
44.Sh SYNOPSIS

--- 47 unchanged lines hidden (view full) ---

92.Sh COMPATIBILITY
93Historically, the
94.Nm
95utility was documented to define a word as a ``maximal string of
96characters delimited by <space>, <tab> or <newline> characters''.
97The implementation, however, didn't handle non-printing characters
98correctly so that `` ^D^E '' counted as 6 spaces, while ``foo^D^Ebar''
99counted as 8 characters.
100.Bx 4
101systems after
102.Bx 4.3
103modified the implementation to be consistent
104with the documentation.
105This implementation defines a ``word'' in terms of the
106.Xr isspace 3
107function, as required by
108.St -p1003.2 .
109.Sh STANDARDS
110The
111.Nm
112function conforms to
113.St -p1003.2 .
114.Sh HISTORY
115A
116.Nm
117command appeared in
118.At v1 .