rargs

xargs + awk hybrid with pattern matching and field extraction

brewmacoslinux
Try with needOr install directly
Source

About

Util like xargs + awk with pattern matching support

Commands

rargs

Examples

Extract and process file paths with pattern matching$ find . -name '*.txt' | rargs -p '(.*)' 'echo Processing {1}'
Parse CSV data and extract specific fields$ cat data.csv | rargs -p '([^,]+),([^,]+)' 'echo User: {1}, Email: {2}'
Process command output with regex groups$ ps aux | rargs -p '(\S+)\s+(\d+)' 'kill -9 {2}'