Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Somehow smoking a pipe twice...?



On Sun, Sep 30, 2012 at 9:27 PM,  <meino.cramer@xxxxxx> wrote:
> Is this possible somehow with zsh?

I may be misunderstanding your question but this is possible with grep alone.

> My first command runs inside my mailfolder and looks like this
>
>     ls -l `grep -l kolkrabe *`
>

# SNIP

>
>     grep -i "Kolkrabe" *
>
> How can I combine both to one command ?
>

grep -irH "Kolkrabe" ./

This will perform a recursive case insensitive search from ./ and will
return the filename (-H is default on some versions of grep) and will
append the line that matches.

Regards, Keith



Messages sorted by: Reverse Date, Date, Thread, Author