3
I'm running Gentoo Linux. A program (equery
) outputs a massive list of all the currently installed packages (equery list "*"
). I want to find out which of them are unstable. Equery marks the unstable packages with [ ~] before the package name. The matter is that it only happens when the output is not redirected anywhere - in the terminal. When I try grepping the output (equery list "*" | grep "~"
) or redirecting it to a file, including stderr (equery list "*" &> eql.txt
) that information is not redirected - only the names of the packages.
So, how do I redirect ALL the output from a program?
Is the info still printed to your terminal with
&>
or is it simply no longer printed at all? – terdon – 2014-03-02T18:50:16.593It is not printed at all when redirecting with
&>
. – John Ashpool – 2014-03-02T18:51:35.7771OK, then it's not a matter of redirection, the issue is that
equery
detects it is being redirected and modifies its output accordingly. Various commands can do this. Tryequery list "*" 2>&1 | grep "~"
does that work? – terdon – 2014-03-02T19:04:43.180By the way, I answered your original question about list of unstable packages here
– VL-80 – 2014-03-02T19:09:36.030And
equery
will not output~
withouty
option which you can not combine withlist
option. – VL-80 – 2014-03-02T19:12:28.950