title: Check string for substring with dash
body: <p>I want my motd to make a nice overview of my system status.
  ATM I'm trying to check if a deamon is running or not and color it accordingly to it's status.</p>
  
  <p>So normally you would enter <code>deamon_name status</code> and it outputs something like <code>Deamon_name running / not running</code> I got it to the point where I check if the <code>Not</code> is contained or not. That worked.</p>
  
  <p>but then I noticed, that when I actually login and trigger the MOTD, I get some wrong information, I then noticed that I need to use <code>dash</code> and not bash or shell.
  And now my compare funtion does'nt work anymore.</p>
  
  <pre><code>if [[ $Server_name =~ .*Not.* ]]
      then 
          printf "NOT RUNNING";
      else 
          printf "RUNNING";
  fi
  </code></pre>
  
  <p>This is my compare function and the check (later I want to add colors red/green)</p>
  
  <p>$Server_name <code>Not running.</code> or <code>running</code></p>