Guest User

Untitled

a guest
Dec 1st, 2017
517
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1.  
  2. #:>/bin/egrep -w "mail.google.com/support/bin/answer.py?answer=6596|This account has been disabled or discontinued" /var/log/maillog | awk '{print $7}' | awk -F '<' '{print $2}' | awk -F '>' '{print $1}' | sort | uniq | head
  3. a@yahoo.com
  4. b@yahoo.com
  5. c@gmail.com
  6. d@yahoo.in
  7. e@yahoo.co.uk
  8. f@YAHOO.COM
  9. g@gmail.com
  10. h@yahoo.com.mx
  11. i@YAHOO.COM
  12. j@yahoo.com
  13.  
  14.  
  15. Desired Output:
  16. [Email-Id "Reason for Bounce"]
  17. a@yahoo.com "This account has been disabled or discontinued"
  18. b@yahoo.com "This account has been disabled or discontinued"
  19. c@gmail.com "mail.google.com/support/bin/answer.py?answer=6596"
  20. d@yahoo.in "This account has been disabled or discontinued"
  21. e@yahoo.co.uk "This account has been disabled or discontinued"
  22. f@YAHOO.COM "This account has been disabled or discontinued"
  23. g@gmail.com "mail.google.com/support/bin/answer.py?answer=6596"
  24. h@yahoo.com.mx "This account has been disabled or discontinued"
  25. i@YAHOO.COM "This account has been disabled or discontinued"
  26. j@yahoo.com "This account has been disabled or discontinued"
  27.  
  28.  
  29. Please suggest solution, as to how it shud be achieved.
  30. Thanks.
Add Comment
Please, Sign In to add comment