The xargs
command can be used to feed the output of one program as variadic arguments to another program.
For example, here's how you can delete all Git branches that match the glob feat/*
:
git branch --list 'feat/*' | xargs git branch -D
The xargs
command can be used to feed the output of one program as variadic arguments to another program.
For example, here's how you can delete all Git branches that match the glob feat/*
:
git branch --list 'feat/*' | xargs git branch -D