Shinji Kuwayama

Archive for March, 2010

12 Mar, 2010

The Value of Promise

Posted by: Shinji Kuwayama In: Clients| Social Networking

On my flight to Austin for SXSW yesterday, I spoke with Shawn Yeager about, among other things, mobile culture and how audiences are quickly maturing.
We talked about Foursquare, of course, and Shawn observed this: Foursquare creates this hope that after checking in somewhere, one of your contacts will see your check-in and spontaneously join you, [...]

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!


About

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

Twitter

Posting tweet...