View previous topic :: View next topic |
Author |
Message |
nahpets Veteran
Joined: 05 Oct 2003 Posts: 1178 Location: Montreal, Canada
|
Posted: Wed Aug 03, 2005 8:56 pm Post subject: 'eix' and 'grep' problem |
|
|
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 |
|
|
Earthwings Bodhisattva
Joined: 14 Apr 2003 Posts: 7753 Location: Germany
|
Posted: Wed Aug 03, 2005 9:12 pm Post subject: |
|
|
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 |
|
|
nahpets Veteran
Joined: 05 Oct 2003 Posts: 1178 Location: Montreal, Canada
|
Posted: Wed Aug 03, 2005 9:39 pm Post subject: |
|
|
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 |
|
|
|