title: Debugging BASH IF Conditions
body: <p>I am getting an error when I try and run my assignment.</p>
  
  <pre><code>#!/bin/bash
  ## Assignment 2
  
  echo Please enter a User Name:
  read u
  if [ $u!="root"]; then
          echo Searching for Username!
          grep $u /etc/passwd|sed 's/$u/hidden/gi'
  elif [ $u!="toor"]; then
          echo Root is NOT allowed.
  else
          echo Toor is definetely NOT allowed.
  fi
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>Please enter a User Name:
  user1
  ./assign2.sh: line 6: [bthiessen: command not found
  ./assign2.sh: line 9: [bthiessen: command not found
  Toor is definetely NOT allowed.
  </code></pre>
  
  <p>What is wrong with my if statements?</p>