xe

Simple xargs and apply replacement for processing input with parallel execution

brewmacoslinux
Try with needOr install directly
Source

About

Simple xargs and apply replacement

Commands

xe

Examples

run a command on each line from a file$ xe -s 'echo Processing: {}' < input.txt
process multiple files in parallel$ find . -name '*.jpg' | xe -P 4 'convert {} {}.webp'
pass multiple arguments to a command$ xe -a 'git commit -m' 'fix bug' 'update docs'
split input and run command for each batch$ seq 1 100 | xe -N 10 'echo Processing batch: {}'
execute commands with placeholder replacement$ ls *.md | xe 'pandoc {} -o {.}.html'