title: c# redirect (pipe) process output to another process
body: <p>I am trying to run a process in c# using the Process class.</p>
  
  <pre><code>Process p1  = new process();
  p1.startinfo.filename =  "xyz.exe";
  p1.startinfo.arguments = //i am building it based on user's input.
  p1.start();
  </code></pre>
  
  <p>So based on user input i am building the argument value. Now i have a case where i have to pipe the output of p1 to another process say grep. so i basically tried this</p>
  
  <p>p1.startinfo.arguments = "-info |grep 1234" ; </p>
  
  <p>what i intended is something like    xyz.exe -info|grep 1234 </p>
  
  <p>but this doesn't seem to work in .net .. I can actually create another process variable and run "grep" as a separate process.. But i was wondering if there is any way to do as iam trying out above..</p>