title: Regex Pattern matching for unique ids
body: <p>I am writing a shell script that searches a text file for a pattern.</p>
  
  <p>The pattern is: uid-  and then an alphanumeric string containing only lower case letters and numbers. For example: uid-12ab34de</p>
  
  <pre><code>#!/bin/bash
  value=$(grep -R "^uid-[a-z][0-9]" "./text.txt")
  echo "$value"
  </code></pre>
  
  <p>I have several attempts at this now and have come here as a last resort. Thanks for any help in advance!</p>