title: Is it possible to let bash to detect compiling error in C?
body: <p>I have a tricky requirement:</p>
  
  <p>I need to use bash to compile 100 programs, say <code>1.c</code>, <code>2.c</code>, <code>3.c</code> ... <code>100.c</code>, I want to keep those c programs which was compiled successfully and <strong>remove c programs which compilation errors</strong>.</p>
  
  <p>Up to now I can only achieve the goal that compiling those 100 programs but I really have <strong>no idea how to detect whether there was failed compilation in these 100 programs</strong>.</p>