zsh-users
 help / color / mirror / code / Atom feed
From: meino.cramer@gmx.de
To: zsh-users@zsh.org
Subject: Somehow smoking a pipe twice...?
Date: Sun, 30 Sep 2012 14:27:40 +0200	[thread overview]
Message-ID: <20120930122740.GA11056@solfire> (raw)

Hi,

Is this possible somehow with zsh?

My first command runs inside my mailfolder and looks like this

    ls -l `grep -l kolkrabe *`

which give me a list of all files which contains the word "Kolkrabe"
("Kolkrabe" is german for "common raven". Latin "Corvus corax").

But additionally I want to know the contents of the line, which 
matches the grep command added to the end of the line "ls -l"
shows for each file. That is the output of

    grep -i "Kolkrabe" *

How can I combine both to one command ?

Thank you very much for any help in advance!
Best regards,
mcc




             reply	other threads:[~2012-09-30 12:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-30 12:27 meino.cramer [this message]
2012-09-30 12:52 ` Keith Bawden
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=20120930122740.GA11056@solfire \
    --to=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).