I'm trying to write a batch script that manages simple software deployments. One of the steps in the script compresses a file structure into a 7zip archive.

During the compression process, the z7ip command line application outputs the current file that is being archived with a percentage indicator. By the end of this process the output is quite long. I would like to reduce the output to a single line because I really only care about the percentage indicator.

Does anyone know of a utility I can redirect the output into that will only display the last line as it comes in? Thanks in advance.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.