4 ms·
I wrote an in-terminal histogram tool[0] because... that's when/where I always need histograms. [0] https://github.com/wizzat/distribution https://github.com/w
by philovivero 5y ago
I wrote an in-terminal histogram tool[0] because... that's when/where I always need histograms.
[0] https://github.com/wizzat/distribution https://github.com/wizzat/distribution
- asdw 5y agoWow, I didn't know I needed this but after looking at it I realized I do.
- tasuki 5y agoThis is the best thing since sliced bread, but it doesn't work for me on a recent Ubuntu. Tried with both Python 2 and 3. Compare: $ sudo du -sb /etc/* | sort | uniq | sort -rn | head -10 2897355 /etc/brltty 436966 /etc/java-11-openjdk 402728 /etc/ssl 251196 /etc/apparmor.d 244732 /etc/ImageMagick-6 219185 /etc/X11 170093 /etc/fonts 144084 /etc/java-8-openjdk 131407 /etc/init.d 117524 /etc/systemd With: $ sudo du -sb /etc/* | distribution Key|Ct (Pct) Histogram 9795 /etc/ssh|1 (0.40%) ----------------------------------------- 97442 /etc/speech-dispatcher|1 (0.40%) ----------------------------------------- 9592 /etc/sysctl.d|1 (0.40%) ----------------------------------------- 9461 /etc/update-manager|1 (0.40%) ----------------------------------------- 9438 /etc/locale.gen|1 (0.40%) ----------------------------------------- 9376 /etc/libreoffice|1 (0.40%) ----------------------------------------- 92 /etc/host.conf|1 (0.40%) ----------------------------------------- 91 /etc/networks|1 (0.40%) ----------------------------------------- 9077 /etc/libblockdev|1 (0.40%) ----------------------------------------- 9074 /etc/pm|1 (0.40%) ----------------------------------------- 9013 /etc/bluetooth|1 (0.40%) ----------------------------------------- 890 /etc/gshadow-|1 (0.40%) ----------------------------------------- 890 /etc/gshadow|1 (0.40%) ----------------------------------------- 8894 /etc/skel|1 (0.40%) ----------------------------------------- 887 /etc/rpc|1 (0.40%) ----------------------------------------- The indentation is all janky. And it's not sorted how I'd like.
- C-x_C-f 5y agoFor the indentation, have you tried using the option -g (--graph)? That does the trick for me
- tasuki 5y agoI haven't - thank you that works!
- raaa 5y agoTry visidata.org https://jsvine.github.io/intro-to-visidata/basics/summarizing-data/ https://jsvine.github.io/intro-to-visidata/basics/summarizin...
- strboul 5y agoThat's why every Python project should have a Docker image.