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.
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 and paste)?
I forgot to do
mycommand.sh > myfile.txt
mycommand.sh >> myfile.txt
for saving the output to a file.