title: Simulating echo input with GDB
body: <p>So I am trying to debug a program which requires the user to input some text through the terminal:</p>
  
  <pre><code>$ echo 'here is the text' | ./program
  </code></pre>
  
  <p>How do I simulate that input in GDB?</p>