I have an incremental build command for my project that will output something if I do a clean build, and output something else (less) if I do an incremental build.
Say, I forgot to do this:
mycommand.sh > myfile.txt
or this
mycommand.sh >> myfile.txt
for saving the output to a file.
How can I save this if I already run a clean build mycommand.sh
and the output is printed on terminal window (without using copy paste)?