What are your opinions on "replacement" programs for core utilities - Programming On Unix

Users browsing this thread: 1 Guest(s)
z3bra
Grey Hair Nixers
I think I am too used to the core utils to move away from them. I'm not fond of colors and interactive filters anyway, so I'm fine with keeping them. Their behavior is also more predictable because defined by POSIX.

I do think however that some tools should be part of the core utilities, and thus "extend" my core utils rather than replace them:

sponge (moreutils)
Reads ALL input before writing to output. Useful for "inplace" operations.
Code:
tr -s ' ' < file | sponge file

pick (mptre)
Simple interactive selector for the terminal. I know that I said I'm not fond of "interactive" commands, but they are sometimes handy, and I'd rather have a dedicated tool for that, rather than have it built into every single tool, each with a different interface.
I use it mostly to select hostnames out of the nearly 2000 hosts we have at work.
This is a much simpler version of my work script (I retrieve host list using an API with curl(1)):
Code:
ssh $(sed -n 's/^host //p' | tr ' ' '\n' | grep -v '*' | pick)

abduco (brain-dump)
Session manager, replicating the "detach" feature of tmux. This is the replacement for the now outdated "dtach" (which still works great).
Code:
abduco -A irc irssi


Messages In This Thread
RE: What are your opinions on "replacement" programs for core utilities - by z3bra - 23-11-2020, 06:13 AM