title: C shell script for gcc compiler
body: <p>I would like to make a script for testing my c program but I could not figure out why it does not work
  I tested it with a easy code so that I am sure that the problem is not because of the C file.</p>
  
  <p>My C Code is:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  
  int main()
  {
  printf("Hello World\n");
  return 0;
  }
  </code></pre>
  
  <p>And my Shell Script is:</p>
  
  <pre><code>gcc -o main main.c
  echo "Hello world"
  </code></pre>
  
  <p>If I execute the script I get the error message on my console</p>
  
  <pre><code>: No such file or directory
  gcc: fatal error: no input files
  compilation terminated 
  </code></pre>
  
  <p>This is the Error I get if I want to execute the script </p>
  
  <p><a href="https://imgur.com/a/zIl55" rel="nofollow noreferrer">https://imgur.com/a/zIl55</a></p>
  
  <p>In the image you can see my problem 
  If I compile the C file “per hand” it has no problem but if I execute the script which contains the same statement it does not work.<br>
  If I just want to compile and only write the command for compiling in my script it works but as soon as I ad an echo or any other command it will not work. </p>
  
  <p>I am using an Ubuntu Shell under Windows.</p>
  
  <p>Any help would be very appreciated. </p>