title: gdb - pipe output of internal command to the shell command
body: <p>Is there any way how to pipe output of internal gdb command to some shell command like <code>grep</code> - the variant of <code>[cmd] ! grep</code> in <code>mdb</code>?</p>
  
  <p>To be more clear: in solaris <code>mdb</code> you can e.g. write</p>
  
  <pre><code>main::dis ! grep call
  </code></pre>
  
  <p>to detect which functions are called from the main (or grep some register names to see how it is changed). I am interested if there is such possibility to do so just in gdb without necessarity to switching from gdb.</p>