我想从UNIX SOLARIS的完整文件系统中提取任何电子邮件地址。
我可以在下面使用特定的域名电子邮件
find / -type f | xargs grep -l" / * @。in.domain.com"
请在下面找到示例。这是用于包含" in.domain.com"
的电子邮件地址但我想提取包含文件系统中存在的任何电子邮件地址的文件列表。
myuser@localhost:/opt/myuser $ find /opt/myuser/V9/server/instance1/default/packs* -type f|xargs grep -l "/*@in.domain.com"
/opt/myuser/V9/server/instance1/default/packs/pack1/config/pack1ConfigP.xml_20151019
/opt/myuser/V9/server/instance1/default/packs/pack2/config/pack2ConfigD.xml
/opt/myuser/V9/server/instance1/default/packs/pack5/pub/config/pack5ConfigD.xml.1
/opt/myuser/V9/server/instance1/default/packs/pack23/config/pack23ConfigP.xml
/opt/myuser/V9/server/instance1/default/packs/pack23/config/pack23ConfigQ.xml
/opt/myuser/V9/server/instance1/default/packs/pack23/config/pack23ConfigD.xml
/opt/myuser/V9/server/instance1/default/packs/pack24/ns/flow/temp/buildCom/flow.xml
/opt/myuser/V9/server/instance1/default/packs/pack66/ns/flow/temp/buildCom/flow.xml
有人可以帮助我使用哪个正则表达式。提前谢谢。
注意:这适用于Unix Solaris。