You'll need to use grep as well as find something like
find -name "*.log" | grep "@" > list.txt but check out the grep man page as I always have to (short circuit in my head over the exact syntax of grep sometimes ;o) ) This should give you every line that has an @ in it in all the log files and redirect into list.txt later ----- Original Message ----- From: Brian York <[EMAIL PROTECTED]> Date: Tue, 10 Dec 2002 11:23:01 -0500 To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]> Subject: [expert] Find command > I have some log files that have a bunch of crap in them. I need to extract > all of the email addresses in them and put them in a file. Does anyone know > how I might be able to do this? > > Find > emails.file > > Thanks > Brian -- __________________________________________________________ Sign-up for your own FREE Personalized E-mail at Mail.com http://www.mail.com/?sr=signup One click access to the Top Search Engines http://www.exactsearchbar.com/mailcom
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
