From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11196 invoked by alias); 30 Sep 2012 12:34:32 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 17297 Received: (qmail 1430 invoked from network); 30 Sep 2012 12:34:30 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,T_TO_NO_BRKTS_FREEMAIL autolearn=ham version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at gmx.de designates 213.165.64.22 as permitted sender) X-Authenticated: #20088476 X-Provags-ID: V01U2FsdGVkX1+W4EIlCSuWvGq5g9zbYRB/Yq4XxdrnXxWf/oOc5o GK04PC61Nj4JUN Date: Sun, 30 Sep 2012 14:27:40 +0200 From: meino.cramer@gmx.de To: zsh-users@zsh.org Subject: Somehow smoking a pipe twice...? Message-ID: <20120930122740.GA11056@solfire> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: mutt-ng/devel-r804 (Linux) X-Y-GMX-Trusted: 0 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