On Saturday 20 January 2007 18:46, James wrote:
> Daniel Iliev <danny <at> ilievnet.com> writes:
> > eix -C -c -n media-video | grep -i dvd
>
> That's a pretty cool search string.
> If I wanted to search the entire tree, why does this not work?
>
> eix -C -c -n * | grep -i dvd
>
> eix does not expand wildcards for matches?

It would be helpful if you would take just one look at `man eix` to see what 
the arguments do.

-n isn't necessary since eix will automatically disable colors when it detects 
a pipe (the | sign). -c just makes the output more compact. -C means you're 
specifying a category but * isn't a category..

Furthermore if you type the above command (assuming you're using bash) eix 
doesn't get an * at all because bash expands it before ever executing the 
command. Try typing `echo *` to see what bash expands it to.

But no, even if you escaped or quoted the * properly eix doesn't expand it. 
But if you don't use --exact it always assumes wildcards. Hence `eix -C -c 
video` results in the same output as `eix -C -c media-video`. And `eix -c` 
outputs everything in the tree.

Instead of the silly grep above I'd just search descriptions with -S though...

-- 
Bo Andresen

Attachment: pgpWQ4x11TSi6.pgp
Description: PGP signature

Reply via email to