At 8:46 AM -0400 8/21/08, Steve Bertrand wrote: >- read email addresses from a file in the format: > >user.name TAB domain.tld > >- convert it to: > >[EMAIL PROTECTED] > >- write it back to either a new file, the original file, or to STDOUT
I'm curious why Perl isn't a decent choice. I think I'd do something like perl -pe 's/(.*?)\.(.*)\t.*/[EMAIL PROTECTED]/' input_file > output_file Of course one could choose to actually run the output to the input with appropriate Perl options but I don't normally do that. -- Walter M. Pawley <[EMAIL PROTECTED]> Wump Research & Company 676 River Bend Road, Roseburg, OR 97470 541-672-8975 _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"