title: Is there a way to stop a program after it outputs n lines?
body: <p>Ive tried the following, but it still waits for the program to finish executing
  lnx>someprogram | sed -n '1,10p'</p>
  
  <p>Maybe a pipe may not be the correct way to go about this. Any feedback would be appreciated!</p>
  
  <p>Regards,
  Puji</p>