Advertisement
Guest User

Untitled

a guest
Aug 25th, 2015
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. 13foobar@example.com
  2. foo.bar3@example2.com
  3. qwerty-1@dept.example3.com
  4.  
  5. foobar@example.com
  6. foobar@example2.com
  7. qwerty@dept.example3.com
  8.  
  9. 13foobar@example.com
  10. foo.bar3@example2.com
  11. qwerty-1@dept.example3.com
  12.  
  13. perl -ne 'my ($user,$host) = split /@/; $user =~ s/[W|d]//g; print $user . "@" . $host;'
  14.  
  15. cat input | perl -ne 'my ($user,$host) = split /@/; $user =~ s/[W|d]//g; print $user . "@" . $host;'
  16.  
  17. foobar@example.com
  18. foobar@example2.com
  19. qwerty@dept.example3.com
  20.  
  21. perl -pe 's/[^a-z]+(?=[^@n]*@)//g'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement