title: How would you represent EOF in bash?
body: <p>I'm trying to do something like </p>
  
  <pre><code>read -d EOF stdin
  
  for word in $stdin; do stuff; done
  </code></pre>
  
  <p>where I want to replace 'EOF' for an actual representation of the end of file character.</p>
  
  <p><b>Edit:</b> Thanks for the answers, that was indeed what I was trying to do. I actually had a facepalm moment when I saw <code>stdin=$(cat)</code> lol</p>
  
  <p>Just for kicks though how would you go about matching something like a C-d (or C-v M-v etc), basically just a character combined with Control, Alt, Shift, whatever in bash?</p>