~dricottone/hist

ref: 260a0a866f557bfc012dc2e2a08a6e047ac1f73b hist/README.md -rw-r--r-- 1.1 KiB
260a0a86Dominic Ricottone Added help/version text 2 years ago
                                                                                
5bca9aaf d_ricottone
5bca9aaf d_ricottone
5bca9aaf d_ricottone
05453534 dricottone
05453534 dricottone
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# hist

Create a histogram on the terminal.

## Usage

```
$ ps -eo pmem --sort=-pmem --no-headers | head -n 20 | python -m hist --bins=20 --positive
│ 10                                                         
│  █                                                         
│  █                                                         
│  █                                                         
│  █                                                         
│  █  5                                                      
│  █  █                                                      
│  █  █                                                      
│  █  █  2        2                                          
│  █  █  █        █                          1               
┼────────────────────────────────────────────────────────────
   0  1  2  3  4  5  6  7  8  9 10 11 12 13 14 15 16 17 18 19
Avg. = 2.25
```