facebookarchive / pfff

Tools for code analysis, visualizations, or style-preserving source transformation.
http://github.com/facebook/pfff/wiki/Main
Other
2.44k stars 204 forks source link

How command pfff output store in a file? #155

Closed iyongliang closed 7 years ago

iyongliang commented 7 years ago

I use pfff to analize project, like

./pfff -parse_cpp ~/MY_PROJECT_PATH/PROJECT_NAME

the output scroll the terminal, and How can I store it in a file

aryx commented 7 years ago

By using redirection?

./pfff -parse_cpp /path > output_file.

Maybe -parse_cpp use stderr to communicate parse error, so you want then to redirect stderr with

./pfff -parse_cpp /path 2> output_file (it depends on which shell you use)

iyongliang commented 7 years ago

@aryx THX, It's real use stderr!