LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

machma

Run commands in parallel with live feedback

TLDR

Run a command for each input line
$ find . -name '*.png' | machma convert {} {.}.jpg
copy
Parallel jobs with replacement tokens
$ cat [hosts.txt] | machma ssh {} uptime
copy
Show help
$ machma -h
copy

SYNOPSIS

machma [*options*] *command* [*args*...]

DESCRIPTION

machma executes a command template once per stdin line (or argument set), in parallel, with a live terminal UI showing progress and results. Placeholders such as {} expand to the current item (similar in spirit to xargs / GNU parallel but with interactive feedback). Written by fd0.

PARAMETERS

*command* [*args*...]

Command template; {} is replaced by each input value.
stdin lines supply the items to process. Concurrency and failure handling flags are available via machma -h.

CAVEATS

Unbounded parallelism can overwhelm remote hosts or disks—limit jobs when needed. Quote carefully when templates include shell metacharacters.

SEE ALSO

xargs(1), parallel(1), rush(1)

RESOURCES

Copied to clipboard
Kai