title: Bash - Execute command with output displaying and then grep it for a summary (pull all git repos)
body: <p>I got a oneliner as a command to pull all git repos in a directory.
  But at the end I would like some sort of summary displaying all errors.</p>
  <p>I've already gotten quite far:</p>
  <pre><code>cd ~/bitbucket; \
  find . \
      -maxdepth 2 -type d \
      -name &quot;.git&quot; \
      -execdir python3 -c 'import os; print(&quot;\33[33m----------------------------------------------  &quot; + os.path.abspath(&quot;.&quot;) + &quot;  ----------------------------------------------\33[0m&quot;)' \; \
      -execdir git checkout development \; \
      -execdir git branch \; \
      -execdir git pull \; \
      -execdir git status \; \
      -execdir echo \; \
      -execdir echo \; \
  | grep -i -e &quot;^&quot; -e &quot;error&quot; 
  </code></pre>
  <p>This will go into the right dir and for each git repo it will do all the git stuff and highlight the word error.
  2 issues I have left are the output coloring from git is gone (for example from the git branch command) and the errors aren't displayed at the end.</p>
  <p>Is there a solution to this?</p>