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!
01 Aug, 2008
Posted by: Shinji Kuwayama In: Tech Tips
I use a MacBook for daily work, along with an external monitor. When leaving the office, I take the Macbook and leave the monitor, naturally.
Dashboard widgets aren’t like ordinary windows — when I disconnect the external display, the Mac doesn’t automatically move them all to the primary display. They simply stay positioned way offscreen, and [...]