Shinji Kuwayama

Posts Tagged ‘Tech Tips

10 Mar, 2010

Perl one-liner to extract email addresses from a text file

Posted by: Shinji Kuwayama In: Rails| Tech Tips

I occasionally have to search log files for email addresses. Here’s the command I use to extract them all out quickly into another file.
perl -wne’while(/[\w\.\-]+@[\w\.\-]+\w+/g){print “$&\n”}’ original.txt | sort -u > extracted_emails.txt
There’s probably room for improvement here—any ideas, please comment!

20 Jan, 2008

A Simple SEO Checklist

Posted by: Shinji Kuwayama In: SEO

You’d think that given the amazing scope of the Internet, truly basic, simple best practices for search engine optimization would be outlined in a simple checklist somewhere. I haven’t seen it, and based on the questions people have been asking at Chicago’s SEO Meetup, I think we must publish one, yes?
This checklist assumes that you [...]

Tags:

About

View Shinji Kuwayama's profile on LinkedIn Shinji Kuwayama is a Rails developer in Chicago, Illinois.

Twitter

Posting tweet...