title: Best way to generate a random string following a specific pattern in Bash
body: <p>I'm wanting to generate many six character strings all following this pattern:</p>
  
  <blockquote>
    <p>[consonant][vowel][consonant][consonant][vowel][consonant]</p>
  </blockquote>
  
  <p>e.g.</p>
  
  <blockquote>
    <p>haplop<br>
    github<br>
    qursog</p>
  </blockquote>
  
  <p>I've looked at various ways of doing this, but nothing I have though of so far is elegant. My thoughts mostly revolved around generating one character at a time but even then my ideas weren't really all that good due to my lack of bash scripting knowledge and obscure Linux commands.</p>
  
  <p>Ideally I'm looking for a Linux command that randomly generates a string but allows me to specify the pattern shown above (if one even exists). Alternatively if you know of a simple way of doing this in bash that would also be great.</p>
  
  <p>Thanks in advance</p>
  
  <p>Edit: BTW, I will give this a 24 hours before choosing the accepted answer so that I have more chance of picking the best answer and not just the first (although the first answer was pretty good).</p>