Jekor's Core Utilities (jcoreutils)
These are additions and enhancements to GNU Core Utilities (coreutils).
xtee ("cross-tee"/"expanded tee") is a program for building complex pipelines. It resembles the tee command, except that instead of copying stdin to stdout, it copies a file to stdout.
Map a command over each line of stdin.
xargs is nice, but it builds commands. I've found no way to shuffle its input into another program's stdin without using echo (which is prone to errors). map is a simpler program with 1 purpose.
Take sections from each line of stdin.
Like cut, but supports indexing fields from the end.
Search and replace strings from stdin.
Like tr, but using strings instead of characters.
One nice feature of trans is that it doesn't operate on lines, so you can use it in more pipelines without blocking (like sed will).
WARNING: trans is using a naive implementation that will not match strings across read boundaries. There's a chance that some strings will not be translated. Consider this version experimental.
I build jcoreutils with Nix to try to ensure reproducible builds:
default.nix is for inclusion in a top-level file (such as
dev.nix builds jcoreutils with a fixed version of nixpkgs, providing stability at the cost of inflating the nix store.