[Tfug] find | grep pipe question

Ryan Cresawn jrcresawn at gmail.com
Thu Oct 23 10:56:58 MST 2008


On Thu, Oct 23, 2008 at 10:44 AM, Paul Lemmons <paul at lemmons.name> wrote:
> -------- Original Message  --------
> Subject: [Tfug] find | grep pipe question
> From: "Charles R. Kiss" <charles at kissbrothers.com>
> To: tfug at tfug.org
> Date: 10/23/2008 10:25 PM
>>
>> Is there a find|grep pipe that will 'find' the numerous directories I have
>> containing abook.mab files then grep out the terms containing the '@' symbol
>> output them into a text file so that I can import them into my address book.

Start with something like this:

find -type f -name abook.mab -exec grep @ {} \; > /tmp/addresses

Ryan




More information about the tfug mailing list