title: Check if string containts slash or backslash in Bash?
body: <p>I'm currently trying to get my bash script checking if a string containts a <code>"/"</code> or a <code>"\"</code> but somehow I can't get it working.</p>
  
  <p>Here is what I got so far:</p>
  
  <pre class="lang-sh prettyprint-override"><code>if [[ "$1" == *\/* ]]; then
     ...
  elif if [[ "$1" == *\\* ]]; then
     ...
  fi
  </code></pre>
  
  <p>Help is much appreciated! Thanks</p>