Saturday, July 12, 2008

To view and save the output from a command at the same time:

Tee command is used to take the output of one command as its own input and pass it to a new file like

lint program.c | tee -a program.lint

It will take the output of lint command as its own input and will append the output to a file called program.lint

-a option is used for appending. You can remove this if you want it to override the previous contents of the program.lint file

Sphere: Related Content

0 comments: