title: Simple method to shuffle the elements of an array in BASH shell?
body: <p>I can do this in PHP but am trying to work within the BASH shell.  I need to take an array and then randomly shuffle the contents and dump that to <code>somefile.txt</code>.</p>
  
  <p>So given array Heresmyarray, of elements <code>a;b;c;d;e;f;</code> it would produce an output file, <code>output.txt</code>, which would contain elements <code>f;c;b;a;e;d;</code></p>
  
  <p>The elements need to retain the semicolon delimiter. I've seen a number of bash shell array operations but nothing that seems even close to this simple concept.  Thanks for any help or suggestions!</p>