Blob


1 .TH FREQ 1
2 .SH NAME
3 freq \- print histogram of character frequencies
4 .SH SYNOPSIS
5 .B freq
6 [
7 .B -dxocr
8 ]
9 [
10 .I file ...
11 ]
12 .SH DESCRIPTION
13 .I Freq
14 reads the given files (default standard input)
15 and prints histograms of the character frequencies.
16 By default,
17 .I freq
18 counts each byte as a character;
19 under the
20 .B -r
21 option it instead counts
22 .SM UTF
23 sequences, that is, runes.
24 .PP
25 Each non-zero entry of the table is printed preceded by the byte value,
26 in decimal, octal, hex, and
27 Unicode
28 character (if printable).
29 If any options are given, the
30 .BR -d ,
31 .BR -x ,
32 .BR -o ,
33 .B -c
34 flags specify a subset of value formats: decimal, hex, octal, and
35 character, respectively.
36 .SH SOURCE
37 .B \*9/src/cmd/freq.c
38 .SH SEE ALSO
39 .MR utf (7) ,
40 .MR wc (1)