title: Need to simulate series of keyboard key events in shell script
body: <p>Since i am beginner in shell scripting and don't know much about the simulating keyboard keys in scripting.</p>
  
  <p>In one of my script i need to run, <code>bq init</code> after this it asks series of questions which involves keyboard events like pressing <code>yes/no</code> after pressing <code>yes</code> again it asks <code>yes or no</code> then it asks to enter the number like <code>1 or 2</code>.</p>
  
  <p>I can manage pressing 1st keyboard key event just by running 
  <code>echo "y" | big init</code> but for later questions/keys i am clueless.
  can anyone help with this....</p>