I have an commandline bash file that I execute in Teamcity. Because execution causes allot of clutter, I want to remove lines to clean it up a bit.
This is a output of the bash file. When uploading a file, it shows a loader from 0% to 100% with color chars
[==================================================>] 100% [2K
[==================================================>] 100%
[==================================================>] 100% [2K
[==================================================>] 100% [2K
[==================================================>] 100%
What i've tried is to remove the chars. But there is no output
./run.sh | grep '(.*)2K' | grep '(.*)\%'
when I use tee /dev/stdout it shows duplicates
./run.sh | grep '(.*)2K' | grep '(.*)\%' | tee /dev/stdout
The executable that outputs the loading line is https://github.com/balena-io/balena-cli