aboutsummaryrefslogtreecommitdiff
path: root/bin/muffle (follow)
Commit message (Collapse)AuthorAgeFilesLines
* bin/muffle: Replace ad-hoc status file logic with statusf(1)EuAndreh9 days1-5/+4
|
* bin/muffle: Set $TMPDIR to $XDG_RUNTIME_DIREuAndreh10 days1-0/+1
|
* bin/muffle: Speed upEuAndreh2024-10-121-10/+5
| | | | | | | | | | | | | | | First, use sort -m, as both inputs are already sorted. This both changes from it from O(n*log(n)) to O(n), and allows sort(1) to produce streaming output, instead of sponging all the input, and potentially spilling to disk during the process. Second, use awk(1) when looping. Not only awk(1) is made for this type of job, but also we only call it once and let it do the loop, over looping manually and calling '['(1), printf() and cut(1) on each iteration. Now we call cut(1) only once. It went from being annoying enough to make me pause considering using to being unnoticeable.
* bin/muffle: Add -n optionEuAndreh2024-01-041-3/+8
|
* re "s|echo \"\\\$|printf '%s\\\n' \"\$|g"EuAndreh2024-01-041-3/+3
| | | | | | Replace all cases where `echo` was given a variable as its first argument, even on cases where we always know what the variable's content look like.
* bin/muffle: Re-interleave STDOUT and STDERR on errorEuAndreh2023-09-141-5/+19
|
* bin/muffle: Add new working utilityEuAndreh2023-08-271-0/+79