<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: I need a perl or php script to extract all mail addresses in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/i-need-a-perl-or-php-script-to-extract-all-mail-addresses/m-p/3553897#M70472</link>
    <description>&lt;BR /&gt;whether the above script is of help to you?&lt;BR /&gt;</description>
    <pubDate>Tue, 31 May 2005 06:29:39 GMT</pubDate>
    <dc:creator>Gopi Sekar</dc:creator>
    <dc:date>2005-05-31T06:29:39Z</dc:date>
    <item>
      <title>I need a perl or php script to extract all mail addresses</title>
      <link>https://community.hpe.com/t5/operating-system-linux/i-need-a-perl-or-php-script-to-extract-all-mail-addresses/m-p/3553894#M70469</link>
      <description>hi&lt;BR /&gt;&lt;BR /&gt;I need a perl or php script to extract all mail addresses from a homepage, but I have to know which mail address is on which HTML site or on which perl or php site. &lt;BR /&gt;I can run this perl script on the webserver machine locally.&lt;BR /&gt;&lt;BR /&gt;kind regards&lt;BR /&gt;chris&lt;BR /&gt;</description>
      <pubDate>Sun, 29 May 2005 10:38:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/i-need-a-perl-or-php-script-to-extract-all-mail-addresses/m-p/3553894#M70469</guid>
      <dc:creator>'chris'</dc:creator>
      <dc:date>2005-05-29T10:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: I need a perl or php script to extract all mail addresses</title>
      <link>https://community.hpe.com/t5/operating-system-linux/i-need-a-perl-or-php-script-to-extract-all-mail-addresses/m-p/3553895#M70470</link>
      <description>How about a pre-processor script.&lt;BR /&gt;&lt;BR /&gt;Try this on for size.&lt;BR /&gt;&lt;BR /&gt;wget &lt;A href="http://www.mysite.com/index.html" target="_blank"&gt;http://www.mysite.com/index.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;# Replace it with a local file, it doesn't matter.&lt;BR /&gt;&lt;BR /&gt;cat index.html | grep "@" &amp;gt; secondary file.&lt;BR /&gt;&lt;BR /&gt;Nnow you have extracted every line with an @ into a file. &lt;BR /&gt;&lt;BR /&gt;You are now quite close.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Sun, 29 May 2005 13:07:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/i-need-a-perl-or-php-script-to-extract-all-mail-addresses/m-p/3553895#M70470</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2005-05-29T13:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: I need a perl or php script to extract all mail addresses</title>
      <link>https://community.hpe.com/t5/operating-system-linux/i-need-a-perl-or-php-script-to-extract-all-mail-addresses/m-p/3553896#M70471</link>
      <description>see whether this is of use to you.&lt;BR /&gt;&lt;BR /&gt;@Files_List contains list of files to be scanned through. you can also use File::Find module to traverse set of directories and get list of files.&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/perl&lt;BR /&gt;&lt;BR /&gt;foreach $file(@Files_List)&lt;BR /&gt;{&lt;BR /&gt;  open(FH, "$file") || die "Cant open file";&lt;BR /&gt;&lt;BR /&gt;  while(&lt;FH&gt;)&lt;BR /&gt;  {&lt;BR /&gt;    chomp($_);&lt;BR /&gt;#Following regular expression hopefully matches most of email id. only condition being that before the email id there should be atleast one space. it can match email id's containing alphanumeric, -, _ and .&lt;BR /&gt;&lt;BR /&gt;  if ($_ =~ m/\s*([-_.\w]+@[-_.\w]+)\s*.*$/g) &lt;BR /&gt;  { &lt;BR /&gt;        print ("-&amp;gt;$file&amp;lt;- contains mail id -&amp;gt;$1&amp;lt;-\n");&lt;BR /&gt;   }&lt;BR /&gt;  }&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Gopi&lt;/FH&gt;</description>
      <pubDate>Mon, 30 May 2005 04:16:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/i-need-a-perl-or-php-script-to-extract-all-mail-addresses/m-p/3553896#M70471</guid>
      <dc:creator>Gopi Sekar</dc:creator>
      <dc:date>2005-05-30T04:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: I need a perl or php script to extract all mail addresses</title>
      <link>https://community.hpe.com/t5/operating-system-linux/i-need-a-perl-or-php-script-to-extract-all-mail-addresses/m-p/3553897#M70472</link>
      <description>&lt;BR /&gt;whether the above script is of help to you?&lt;BR /&gt;</description>
      <pubDate>Tue, 31 May 2005 06:29:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/i-need-a-perl-or-php-script-to-extract-all-mail-addresses/m-p/3553897#M70472</guid>
      <dc:creator>Gopi Sekar</dc:creator>
      <dc:date>2005-05-31T06:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: I need a perl or php script to extract all mail addresses</title>
      <link>https://community.hpe.com/t5/operating-system-linux/i-need-a-perl-or-php-script-to-extract-all-mail-addresses/m-p/3553898#M70473</link>
      <description>thanks for the scripts !&lt;BR /&gt;&lt;BR /&gt;Sorry I didn't check yet, have a lot of work now,&lt;BR /&gt;but I'll do next week and I'll report.</description>
      <pubDate>Tue, 31 May 2005 07:12:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/i-need-a-perl-or-php-script-to-extract-all-mail-addresses/m-p/3553898#M70473</guid>
      <dc:creator>'chris'</dc:creator>
      <dc:date>2005-05-31T07:12:42Z</dc:date>
    </item>
    <item>
      <title>Re: I need a perl or php script to extract all mail addresses</title>
      <link>https://community.hpe.com/t5/operating-system-linux/i-need-a-perl-or-php-script-to-extract-all-mail-addresses/m-p/3553899#M70474</link>
      <description>Hi Chris,&lt;BR /&gt;&lt;BR /&gt;here's a schell script which does the same (and some more). It's a piece from a script I use to send people "personal" emails. &lt;BR /&gt;&lt;BR /&gt;The file it reads is called "list" change it to what you want.&lt;BR /&gt;&lt;BR /&gt;Hope it helps.&lt;BR /&gt;&lt;BR /&gt;Cheerio,&lt;BR /&gt;&lt;BR /&gt;Renarios</description>
      <pubDate>Tue, 31 May 2005 07:16:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/i-need-a-perl-or-php-script-to-extract-all-mail-addresses/m-p/3553899#M70474</guid>
      <dc:creator>renarios</dc:creator>
      <dc:date>2005-05-31T07:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: I need a perl or php script to extract all mail addresses</title>
      <link>https://community.hpe.com/t5/operating-system-linux/i-need-a-perl-or-php-script-to-extract-all-mail-addresses/m-p/3553900#M70475</link>
      <description>thanks !</description>
      <pubDate>Tue, 31 May 2005 08:49:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/i-need-a-perl-or-php-script-to-extract-all-mail-addresses/m-p/3553900#M70475</guid>
      <dc:creator>'chris'</dc:creator>
      <dc:date>2005-05-31T08:49:54Z</dc:date>
    </item>
  </channel>
</rss>

