title: grep exact integer match
body: <pre><code>read -p "Please enter ID: " staffID 
  id=$(grep -w "$staffID" record | cut -d ":" -f1 | sort -u );
  echo $id
  </code></pre>
  
  <p>I have some issues with trying to grep the correct value from a file. </p>
  
  <p>The following is stored in the record file.</p>
  
  <pre><code>12:Griffin:Peter:13:14:16
  14:Griffin:Meg:19:19:10
  10:Griffin:Loi:19:20:20
  130:Griffin:Stewie:19:19:19
  13:Wayne:Bruce:19:20:2
  </code></pre>
  
  <p>My first column stores the id which is always unique and is what I am looking for in grep. With the code above, I only want to find the unique ID which is entered by a user and is displayed on screen but my echo produces a blank value if I enter an ID of 13 when it should produce 13 obviously. Any ideas which would solve this?</p>