Linux command
moreutils 命令
文件
Uses pipes, overwrite, or deletion. Check paths and options first.
命令示例
Sponge: absorb stdin then write
cat [file] | grep [pattern] | sponge [file]
Ts: add timestamps
[command] | ts '[%Y-%m-%d %H:%M:%S]'
Chronic: quiet unless error
chronic [command]
Pee: tee to commands
echo "[data]" | pee 'wc -l' 'wc -c'
Vidir: edit directory with editor
vidir [directory]
Parallel: run a command for each argument concurrently
parallel -j [4] [cmd] -- [arg1] [arg2] [arg3]
Ifne: run command only if stdin is non-empty
[command] | ifne [other_command]
Errno: look up errno values
errno [ENOENT]
说明
moreutils is a collection of useful Unix utilities that don't quite fit anywhere else. Each tool does one thing well and integrates with standard Unix pipelines. Key tools include sponge, ts, chronic, vidir, parallel, ifdata, and more.
FAQ
What is the moreutils command used for?
moreutils is a collection of useful Unix utilities that don't quite fit anywhere else. Each tool does one thing well and integrates with standard Unix pipelines. Key tools include sponge, ts, chronic, vidir, parallel, ifdata, and more.
How do I run a basic moreutils example?
Run `cat [file] | grep [pattern] | sponge [file]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
Where can I find more moreutils examples?
This page includes 8 examples for moreutils, plus related commands for nearby Linux tasks.