Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Extract names and emails from a text file' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Extract names and emails from a text file
Authored by: Supp0rtLinux on Feb 20, '13 01:37:32PM

While this works on a Mac, its far from a Mac hint. Technically, this is just UNIX command line work. Any of the O'reilly Press books of UNIX Power Tools, Learning Sed and Awk, Learning vi, etc cover this type of stuff. I guess this is a good example of one use case for a Mac… and of course its a power you don't get on a PC without something like cygwin or ming installed, but a "Mac OS X Hints" it is not. grep, sed, awk, & cut are all common UNIX/Linux command line, text formatting tools, not Mac specific. But thanks for sharing...



[ Reply to This | # ]
Extract names and emails from a text file
Authored by: Supp0rtLinux on Feb 20, '13 01:40:41PM

Of course, on the flip side it just dawned on me that you posted a way to harvest email addresses. Hopefully you aren't planning to spam anybody with your newly found command line-fu. If you do… be sure the gods will find you and the end result will be worse than anything you can ever imagine. ;)



[ Reply to This | # ]
Extract names and emails from a text file
Authored by: robg on Feb 21, '13 05:30:44AM

No spamming going on, just something I have to do for our small company to send licenses to users from time to time.

-rob.

---
Now: at Many Tricks, maker of useful apps
http://manytricks.com. Previously: founded this site.



[ Reply to This | # ]
Extract names and emails from a text file
Authored by: kirkmc on Feb 21, '13 12:24:17AM

Right, I'll just go delete all the command line hints on the site, then, since they're not Mac-specific...

---
Mac OS X Hints editor - Macworld senior contributor
http://www.mcelhearn.com



[ Reply to This | # ]
Extract names and emails from a text file
Authored by: robg on Feb 21, '13 05:47:18AM

When I founded macosxhints back in November of 2000, one of the key reasons for the site's existence was for Mac users to have a place to learn about everything new in OS X, including the Unix underbelly. The Unix category has been here since day one, and has been (in my eyes) an important feature of the site: it's a way for Mac users to gain Unix knowledge without having to dive into a full-blow Unix book, or to visit a Unix-centric site (which may contain information not relevant to the version of Unix in OS X).

If you argue this doesn't belong here as related to OS X, then it also seems valid that Applications should go away, because those programs aren't directly related to OS X either -- they merely run on top of the OS, they're not part of it (I guess hints on Apple's bundled apps would remain).

In short, Mac OS X Hints was always about getting the most out of all aspects of OS X, including the Unix side.

-rob.

---
Now: at Many Tricks, maker of useful apps
http://manytricks.com. Previously: founded this site.



[ Reply to This | # ]
Extract names and emails from a text file
Authored by: Supp0rtLinux on Feb 21, '13 07:36:44AM

Actually, I wasn't complaining that a UNIX hint was posted here… OS X is, after all, UNIX at its core. And I've personally enjoyed many of the Mac-specific UNIX command line tools… I use some to grep out my network status to feed it into GeekTool, for example. I was just pointing out that this specific hint was not Mac specific at all… just UNIX specific. It could have been run unaltered on most Solaris, AIX, or Linux systems, for example. Wasn't trying to flame anyone or piss anyone off. Just making a comment… hence why the prompt is to "Post a Comment" :)



[ Reply to This | # ]