Mike McCarty wrote:
if [ -z "`echo $pkg | grep not\ owned`" ] ; then
I'm not familiar with that form for grep. Do you mean
grep -v owned
Nope.
Oh, of course, you were escaping the space. But isn't this
...
grep -v not\ owned
Nope.
You're welcome. It is a better solution, IMO. If the "not owned" string gets changed by the maintainers of rpm, then you'll have to track that. The "--quiet" is unlikely to change, I think, and results in less coupling.
Well it's the great thing about Free software, you can have your version how you like.
-Andy