title: Generate password in bash store in variable
body: <p>I am currently writing a script for automating setting up a new server with ftp and apache, but I don't wanna write in what password they should use, so i wanted to generate it with the current line.</p>
  
  <pre><code>&lt; /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c12
  </code></pre>
  
  <p>however it does not seem to work when i put it inside a variable:</p>
  
  <pre><code>PASSGEN="&lt; /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c12"
  FTPPASS=$(eval $PASSGEN)
  DBPASS=$(eval $PASSGEN)
  echo $FTPPASS
  </code></pre>
  
  <p>if i change the if PASSGEN string is date is works fine. Is there somehting i have missed completly?</p>