MTS #1: split output in linux
Today I am starting Messages To Self (MTS) posts. This will help me keeping track of stuff I often use or which I find interesting, ways of working or interesting links.
The first is the tee command.
An excerpt from the man page:
tee – read from standard input and write to standard output and files
An example for usage:
mvn clean integration-test | tee build.log
This will start a Maven build and output to both the console as well as a build.log file on disk.

Comments are closed.