export from cmd

hi all
i have entered -ast-dump option for clang in cmd so the AST is shown to me.
the problem is how can i export this output into a text format?
i appreciate any help
<http://clang-developers.42468.n3.nabble.com/file/n4046842/ex.jpg&gt;

your-clang-command > output.txt 2>&1

The first > redirects stdout into a file, and the 2>&1 redirects stderr into stdout.

  • Kim