I have a collection of miscellaneous scripts in my ~/bin.
- xuniq — print only unique lines of input, without requiring that the input be sorted (preserves ordering).
- joinlines — remove newlines from input. Sort of like xargs echo, but it can preserve trailing whitespace.
- diskusage — awk wrapper around du, to print out disk usage in a vaguely-useful format (i.e. ordered properly and in human-readable units, something that’s not possible with just du and sort alone, as the units break the ordering).
And much much more! Mostly undocumented and half-broken.
Available from git.
Add a comment