Execute a command for each line of standard input. Like
xargs
, but with pattern matching support. More information: https://github.com/lotabout/rargs.
xargs
({0}
indicates where to substitute in the text):{{command}} | rargs {{command}} {0}
{{command}} | rargs -e {{command}} {0}
.bak
extension from every file in a list:{{command}} | rargs -p '(.*).bak mv {0} {1}
{{command}} | rargs -w {{max-procs}}
\0
) instead of a newline (\n
):{{command}} | rargs -0 {{command}} {0}