Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
'eix' and 'grep' problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
nahpets
Veteran
Veteran


Joined: 05 Oct 2003
Posts: 1178
Location: Montreal, Canada

PostPosted: Wed Aug 03, 2005 8:56 pm    Post subject: 'eix' and 'grep' problem Reply with quote

I was using the following command to grep KDE related themes in portage:
Code:

# eix -ncC x11-themes | grep -i "kde"


It was working until 5 minutes ago... instead of giving the expected output of all lines matching "KDE", I get this:
Code:

# eix -ncC x11-themes | grep -i "kde"
Binary file (standard input) matches


I'm assuming that there's some weird ascii character somewhere in the output. Anyone know how to filter them out? I don't know why it suddenly stopped working.
_________________
Let me guess, you picked out yet another colorful box with a crank that I'm expected to turn and turn until OOP! big shock, a jack pops out and you laugh and the kids laugh and the dog laughs and I die a little inside.
Back to top
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Germany

PostPosted: Wed Aug 03, 2005 9:12 pm    Post subject: Reply with quote

Not sure what's causing it, but you can get it working again by adding the -a parameter to grep.
Code:
eix -ncC x11-themes | grep -ai "kde"


Edit: Or use something like
Code:
eix -ncC x11-themes -sSp "*kde*"

_________________
KDE
Back to top
View user's profile Send private message
nahpets
Veteran
Veteran


Joined: 05 Oct 2003
Posts: 1178
Location: Montreal, Canada

PostPosted: Wed Aug 03, 2005 9:39 pm    Post subject: Reply with quote

Yeah... thanks. I found the '-a' option in 'man grep'. It works again. I don't know why it stopped working all of a sudden though... The 'eix -ncC x11-themes -sSp "*kde*" ' works though. Thanks for the tip.
_________________
Let me guess, you picked out yet another colorful box with a crank that I'm expected to turn and turn until OOP! big shock, a jack pops out and you laugh and the kids laugh and the dog laughs and I die a little inside.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum