freq

command
v0.0.0-...-983889e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 16, 2023 License: MIT Imports: 6 Imported by: 0

README

freq

Compute frequency distributions from standard input.

Install

go install github.com/clfs/m/cmd/freq@latest

Uninstall

rm -i $(which freq)

Usage

$ freq -h
Usage of freq:
  -by string
        line, byte, rune, or word (default "line")

Examples

$ ps -eo user | freq | head
368     calvin          
159     root            
13      _accessoryupdater
8       _cmiodalassistants
7       _locationd      
7       _rmd            
7       _softwareupdate 
5       _coreaudiod     
5       _spotlight      
4       _nsurlsessiond
$ cat /bin/ls | freq -by byte | head
138812  0x00
1846    0xff
1625    0x01
1407    0x03
1157    0x48
929     0x5f
899     0x74
883     0x20
757     0x40
720     0x65
$ cat /usr/share/locale/zh_CN/LC_TIME | freq -by rune | head
58      "\n"
25      "月"
21      "%"
16      " "
7       "星"
7       "期"
6       "一"
6       "二"
6       "十"
5       "1"
$ man tar | freq -by word | head
299     the
128     and
113     is
113     to
81      or
76      of
76      tar
65      archive
60      be
60      in

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL