How to print some output to terminal as well as to a file

I am running a program in groovy and I am saving it to a file, like this:

groovy program > output

However, I would like to track the progress of the program while it’s running, is it possible to print some output also to the terminal?

Source: ubuntu

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.