Cleaning up kubernetes pods:

kubectl get pods | egrep 'brigade-vacuum' | awk '{print $1}' | xargs -n1 kubectl delete  pods

If you were searching recursively in the current directory for files containing the word test, and you wanted to edit each file you found with vi, the following command could be used:

grep -ilrw test * | xargs bash -c '</dev/tty vim "$@"' ignoreme

NOTE 1: the ignoreme is there to take up $0, so that $@ is all arguments from xargs

NOTE 2: it may have been easier to simply use:

grep -ilrw test * | xargs vi

However this messes up the terminal