Git - do xy for each git branch in linux bash

Do xy foreach git branch in Linux bash.

Because we stumbled upon this at work:

for branch in $(git branch | grep "[^* ]+" -Eo); do
  echo "this is an awesome $branch"
  echo "do something else with this $branch"
done