[Tfug] find | grep pipe question

Paul Lemmons paul at lemmons.name
Thu Oct 23 10:44:53 MST 2008


-------- 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.
>
> Or how else do I import the abook.mabs that I have collected over the 
> years??
> I normally just do separate find and grep operations to find old email 
> addresses and I thought someone else might have a better idea.
>
> TIA
>
> charles
>
> _______________________________________________
> Tucson Free Unix Group - tfug at tfug.org
> Subscription Options:
> http://www.tfug.org/mailman/listinfo/tfug_tfug.org
>
Untested but should be close...


find . -name abook.mab | xargs grep '@' > address.book

-- 
Sometimes I wonder.  Were our faith able to stand upright and look around, would it be looking down at the mustard seed or standing in awe of the height and breadth of it.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3296 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://tfug.org/pipermail/tfug_tfug.org/attachments/20081023/f5097f68/attachment-0002.bin>


More information about the tfug mailing list