User Tools

Site Tools


linux:bash:script-grep-email-from-maillog

Bash Grep Match Email dari Maillog

Script berikut adalah untuk memfilter email dari file log maillog

tail -n 100 /var/log/exim/mainlog | grep -Eo "\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,6}\b"

output kira2 seperti ini

xxx@sfds.com
xxx@sss.com

selesai

Layanan

Harga Domain .COM | Harga Domain .ID | Shared Hosting | Email Hosting | MySQL Hosting |
linux/bash/script-grep-email-from-maillog.txt · Last modified: 2023/01/08 21:11 by kbadmin

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki