title: Shell script takes a list of commands as input, tries to execute them, and fails
body: <p>I am, like many non-engineers or non-mathematicians who try writing algorithms, an intuitive. My exact psychological typology makes it quite difficult for me to learn anything serious like computers or math. Generally, I prefer audio, because I can engage my imagination more effectively in the learning process.</p>
  
  <p>That said, I am trying to write a shell script that will help me master Linux. To that end, I copied and pasted a list of Linux commands from the O'Reilly website's index to the book Python In a Nutshell. I doubt they'll mind, and I thank them for providing it. These are the textfile `massivelistoflinuxcommands,' not included fully below in order to save space...</p>
  
  <p>OK, now comes the fun part. How do I get this script to work?</p>
  
  <pre><code>#/bin/sh
  read -d 'massivelistoflinuxcommands' commands &lt;&lt;EOF
  
  accept
  bison
  bzcmp
  bzdiff
  bzgrep
  bzip2
  bzless
  bzmore
  c++
  lastb
  lastlog
  strace
  strfile 
  zmore
  znew
  
  
  EOF
  
  for i in $commands
  do
  
  $i --help | less | cat &gt; masterlinuxnow
  
  text2wave masterlinuxnow -o ml.wav
  
  done
  </code></pre>