@JaredBusch said in Redirecting feedback from Linux command:
@Pete-S Pretty much what I do not want is the status bar from these two commands.
fwconsole ma upgradeall
fwconsole chown
Well, use grep to match for the progress bar then.
First output stderr to a file and look in the file.
I don't know how the progress bar looks when it's output as a stream of characters.
I'm guessing every update is something like
3076094/3076094 [===========>-------------] 60%<CR>
In that case grep for every line that doesn't contain a [ followed by a number of =, > or - and finally a ].
So something like:
grep -v '[[=->]+\]'
Or maybe even better:
grep -v '[[=->]{28}\]'
Above assuming there are always 28 characters inside the brackets in the progress bar.
PS.
Funny thing but there seems to be a bug in the forum software.
I had to use an extra backslash to get the above regex look right [[=->]+\\] instead of [[=->]+\]
They look right in the preview though.