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 68963 2000-11-20 19:21:22Z 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.
1004BSD systems after 4.3BSD modified the implementation to be consistent
101with the documentation.
102This implementation defines a ``word'' in terms of the
103.Xr isspace 3
104function, as required by
105.St -p1003.2 .
106.Sh STANDARDS
107The
108.Nm
109function conforms to
110.St -p1003.2 .
111.Sh HISTORY
112A
113.Nm
114command appeared in
115.At v1 .