howtos:regex-stuff-mail
Differences
This shows you the differences between two versions of the page.
howtos:regex-stuff-mail [25/08/2017 13:34] – created domingo | howtos:regex-stuff-mail [02/12/2018 21:34] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ===== Extract Email Address ===== | ||
+ | The file abc.af looks like this: | ||
+ | < | ||
+ | R1211566974^M | ||
+ | F< | ||
+ | T< | ||
+ | </ | ||
+ | |||
+ | The following extracts the two email addresses: | ||
+ | |||
+ | < | ||
+ | cat abc.af |perl -wne' | ||
+ | fettle@333empire.com | ||
+ | gwensadler@vp.dk | ||
+ | </ | ||
+ | |||
+ | ===== Making a list one line ===== | ||
+ | If you have a list in a textfile: | ||
+ | < | ||
+ | abd | ||
+ | def | ||
+ | ghi | ||
+ | </ | ||
+ | |||
+ | You want to make into: | ||
+ | < | ||
+ | abc def ghi | ||
+ | </ | ||
+ | |||
+ | Do this: | ||
+ | < | ||
+ | cat / | ||
+ | </ | ||
+ | |||
+ | This command substitute newlines (" | ||
+ | |||
+ | |||
+ | ===== Extract FQDN from URL ===== | ||
+ | |||
+ | < | ||
+ | tdd@host: | ||
+ | domain.tdl | ||
+ | tdd@host: | ||
+ | </ | ||
+ | |||
howtos/regex-stuff-mail.txt · Last modified: 02/12/2018 21:34 by 127.0.0.1