zsh-users
 help / color / mirror / code / Atom feed
From: Keith Bawden <keith@bawdo.com>
To: meino.cramer@gmx.de
Cc: zsh-users@zsh.org
Subject: Re: Somehow smoking a pipe twice...?
Date: Sun, 30 Sep 2012 21:52:58 +0900	[thread overview]
Message-ID: <CAH2MgL+Gw8n7TbA07D0nqF_LvOJzOg3oHbdncJbyg+QDO1P_FQ@mail.gmail.com> (raw)
In-Reply-To: <20120930122740.GA11056@solfire>

On Sun, Sep 30, 2012 at 9:27 PM,  <meino.cramer@gmx.de> 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


  reply	other threads:[~2012-09-30 13:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-30 12:27 meino.cramer
2012-09-30 12:52 ` Keith Bawden [this message]
2012-09-30 16:16 ` Bart Schaefer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAH2MgL+Gw8n7TbA07D0nqF_LvOJzOg3oHbdncJbyg+QDO1P_FQ@mail.gmail.com \
    --to=keith@bawdo.com \
    --cc=meino.cramer@gmx.de \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).