Miscellaneous scripts, mostly for the GNU/Linux command line
Show a brief sampling of given file(s) content.
Calculate the average of a series of input numbers. Supports arithmetic mean, median, standard deviation, max, min, and sum. Numbers can be from a given field with a custom delimiter.
A smarter cal
wrapper that can handle month names, 9mo view, and nearest month. Try cal -9
.
Colored diff, uses git diff --patience
if available
A smarter multi-pattern grep
wrapper.
List entire ownership hierarchy of given process(es) from top to bottom.
Show notes on vim swap files.
Title-aware sort
wrapper that displays title line(s) before sorted content.
Truncate input to current terminal width (or specify a different width).
Like zcat
+ awk
, supporting bz2, gz, xz, & more, with proper FILENAME and FNR.