title: bash scripts to compile and run C++
body: <p>I'm trying to get into C++ but its annoying to have to run things through the command line with wordy commands so I wanted to make a bash script to simplify the process and run these commands</p>
  
  <pre><code>#!/bin/bash
  if [ "$1" == "start" ]; then
      cd CCPP
      cd HelloWorld
      g++ -Wall -W -Werror main.cpp -o HelloWorldCPP
      ./HelloWorldCPP
  </code></pre>
  
  <p>But I've never worked with bash before and hacked it together from someone elses code. Its not working, but I have no idea why as I don't know enough.</p>