From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23003 invoked by alias); 30 Sep 2012 13:20:04 -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: 17298 Received: (qmail 25705 invoked from network); 30 Sep 2012 13:20:03 -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=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at bawdo.com does not designate permitted sender hosts) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:x-gm-message-state; bh=THVQVvFrq4CjYxlAy6H6TKPmFsaFxYGN2wxa2KmrsnQ=; b=mY0L/p3qzTOHruf2NDi1b/gFl7d+lT4puLI7uGIFyWwSD0be0wixRvNmAhR3i6feQc J8B9JGvIZ+TZlkLHJcqqsvoNusSK0U696spyjs7WqATcY5B1HGH8M+gJkukRJIaVuCN4 G9kGcp3hPyUHOmJe+YbShh7wCO5+0OjsuPUlr27yuWbz1JTkxwbj7Ki31VucjVOytyof GxdQSeeDkuqpEA0sZGCpH3brFeE/+/2geoLIMpmq7FLKLdOmHL5V4xl+oFx2zM+Qe0Du TpElxpdFg3zsZpyZPiJZ6YplKnKkW6ftxCA3517Xs1mr/2uo65Kyypie55+pZ71GeFTb UOPw== MIME-Version: 1.0 In-Reply-To: <20120930122740.GA11056@solfire> References: <20120930122740.GA11056@solfire> Date: Sun, 30 Sep 2012 21:52:58 +0900 Message-ID: Subject: Re: Somehow smoking a pipe twice...? From: Keith Bawden To: meino.cramer@gmx.de Cc: zsh-users@zsh.org Content-Type: text/plain; charset=UTF-8 X-Gm-Message-State: ALoCoQn7zeBgujLJmlQu2HbrIlmu5AXI4g0WRFIN6hSW5ogzEy4y7q3Bi3p/qL+/8NJ6q0BSh9zx On Sun, Sep 30, 2012 at 9:27 PM, 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