Skip to content

Latest commit

 

History

History
77 lines (52 loc) · 2.09 KB

README.md

File metadata and controls

77 lines (52 loc) · 2.09 KB

misc-scripts

Miscellaneous scripts, mostly for the GNU/Linux command line

abridge

Show a brief sampling of given file(s) content.

alert

Pop up an alert

anagrams

Find words composed of given letters (without extra repetition), good for word games.

apt-popcon

Show APT popularity statistics given a pattern

arms

Print the first and final lines of each given file, like combining head and tail, truncating the width to the terminal.

avg

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.

beep, vbeep

Alert by beeping or flashing the console

cal

A smarter cal wrapper that can handle month names, 9mo view, and nearest month. Try cal -9.

countdown

Like sleep but counts down visually when interactive and unpiped.

diffc

Colored diff, uses git diff --patience if available.

gray

Gray standard output, leaving standard error nice and visible.

grepe

A smarter multi-pattern grep wrapper.

hd

Enhanced hex dump wrapper with colors and wide options.

lsps

List entire ownership hierarchy of given process(es) from top to bottom.

ls.swp

Show notes on vim swap files.

pdfmerge

Merge PDFs

radix

Convert numbers from one radix (arithmetic base) to another or generate a code from a truncated MD5 checksum.

sgr

Demonstration of various Select Graphic Rendition parameters (ANSI SGR colors+)

sortn

Title-aware sort wrapper that displays title line(s) before sorted content.

timecalc

Convert time between colon-delimited units and numbers of seconds.

trunc

Truncate input to current terminal width (or specify a different width).

utf2ascii

Convert look-alike characters into ASCII.

vimdiff / gvimdiff

Wrapper for vimdiff that supports automatically comparing to git, SyncThing, snapshots, or else backup names.

waitx

Wait until all given PIDs complete.

zawk

Like zcat + awk, supporting bz2, gz, xz, & more, with proper FILENAME and FNR.