Moreutils comes with additional Unix utilities. Sysadmin loves tools. Let’s see what tools are available.
# dpkg -L moreutils | grep /usr/bin/ /usr/bin/lckdo /usr/bin/ts /usr/bin/sponge /usr/bin/chronic /usr/bin/ifne /usr/bin/vidir /usr/bin/pee /usr/bin/zrun /usr/bin/vipe /usr/bin/isutf8 /usr/bin/ifdata /usr/bin/combine /usr/bin/errno /usr/bin/parallel /usr/bin/mispipe
Now let’s see what they do:
lckdo – run a program with a lock held
ts – add a timestamp prefix to input
sponge – buffer inputs before writing to output
chronic – run command silently unless it fails or crashes
ifne – run command if stdin is not empty
vidir – edit filenames in a directory with vi
pee – pile outputs to commands
zrun – automatically uncompress arguments to command
vipe – pipe to vi, allows manual editing, and then pipe to next command
isutf8 – check whether files are valid UTF-8
ifdata – get network interface info without parsing ifconfig output (e.g. ifdata -pa virbr0 #prints just the IP address)
combine – combine sets of lines from two files using boolean operations
errno – look up errno names and descriptions
parallel – run programs in parallel
mispipe – pipe two commands, returning the exit status of the first
I absolutely love these utilities and have been using some of them for a while.
Inspired by: https://www.linux.com/learn/moreutils-your-linux-shell-tool-set