Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Somehow smoking a pipe twice...?
- X-seq: zsh-users 17298
- From: Keith Bawden <keith@xxxxxxxxx>
- To: meino.cramer@xxxxxx
- Subject: Re: Somehow smoking a pipe twice...?
- Date: Sun, 30 Sep 2012 21:52:58 +0900
- Cc: zsh-users@xxxxxxx
- In-reply-to: <20120930122740.GA11056@solfire>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <20120930122740.GA11056@solfire>
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